Przeglądaj źródła

Remove trailing newline from string literal in warning calls

Guillem Jover 11 lat temu
rodzic
commit
d7676a0374
3 zmienionych plików z 3 dodań i 2 usunięć
  1. 1 0
      debian/changelog
  2. 1 1
      lib/dpkg/options.c
  3. 1 1
      src/main.c

+ 1 - 0
debian/changelog

@@ -23,6 +23,7 @@ dpkg (1.18.0) UNRELEASED; urgency=low
   * Add support for arch-bits and arch-endian dpkg-gensymbols tags.
     Closes: #630342
   * Rename and deprecate Dpkg::Gettext _g function with new g_.
+  * Remove trailing newline from string literal in warning calls.
 
  -- Guillem Jover <guillem@debian.org>  Tue, 09 Dec 2014 23:53:18 +0100
 

+ 1 - 1
lib/dpkg/options.c

@@ -292,7 +292,7 @@ dpkg_options_parse_arg_int(const struct cmdinfo *cmd, const char *str)
 void
 setobsolete(const struct cmdinfo *cip, const char *value)
 {
-  warning(_("obsolete option '--%s'\n"), cip->olong);
+  warning(_("obsolete option '--%s'"), cip->olong);
 }
 
 const struct cmdinfo *cipaction = NULL;

+ 1 - 1
src/main.c

@@ -642,7 +642,7 @@ set_force(const struct cmdinfo *cip, const char *value)
     } else if (fip->opt) {
       *fip->opt = cip->arg_int;
     } else {
-      warning(_("obsolete force/refuse option '%s'\n"), fip->name);
+      warning(_("obsolete force/refuse option '%s'"), fip->name);
     }
 
     if (!comma) break;