Преглед изворни кода

libdpkg: Rename warningf() to warning()

Guillem Jover пре 17 година
родитељ
комит
778eaba6b2
4 измењених фајлова са 10 додато и 3 уклоњено
  1. 5 0
      ChangeLog
  2. 1 1
      lib/dpkg.h
  3. 3 1
      lib/ehandle.c
  4. 1 1
      lib/myopt.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-12-05  Guillem Jover  <guillem@debian.org>
+
+	* lib/dpkg.h (warningf): Rename to ...
+	(warning): ... this. Fix all callers.
+
 2008-11-19  Raphael Hertzog  <hertzog@debian.org>
 
 	* scripts/Dpkg/Source/Functions.pm (fixperms): Fix chmod call to

+ 1 - 1
lib/dpkg.h

@@ -193,7 +193,7 @@ void ohshite(const char *fmt, ...) NONRETURNING PRINTFFORMAT(1, 2);
 void ohshitvb(struct varbuf*) NONRETURNING;
 void badusage(const char *fmt, ...) NONRETURNING PRINTFFORMAT(1, 2);
 void werr(const char *what) NONRETURNING;
-void warningf(const char *fmt, ...) PRINTFFORMAT(1, 2);
+void warning(const char *fmt, ...) PRINTFFORMAT(1, 2);
 
 /*** log.c ***/
 

+ 3 - 1
lib/ehandle.c

@@ -289,7 +289,9 @@ void ohshite(const char *fmt, ...) {
   run_error_handler();
 }
 
-void warningf(const char *fmt, ...) {
+void
+warning(const char *fmt, ...)
+{
   int e;
   va_list al;
   char buf[1024];

+ 1 - 1
lib/myopt.c

@@ -40,7 +40,7 @@ void myfileopt(const char* fn, const struct cmdinfo* cmdinfos) {
   if (!file) {
     if (errno==ENOENT)
       return;
-    warningf(_("failed to open configuration file `%.255s' for reading"),fn);
+    warning(_("failed to open configuration file `%.255s' for reading"), fn);
     return;
   }