The following commit has been merged in the master branch:
commit 778eaba6b21678a54cf0f83a960f93f65bc83742
Author: Guillem Jover <[EMAIL PROTECTED]>
Date:   Fri Dec 5 06:33:03 2008 +0200

    libdpkg: Rename warningf() to warning()

diff --git a/ChangeLog b/ChangeLog
index f627e93..ee9f526 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-05  Guillem Jover  <[EMAIL PROTECTED]>
+
+       * lib/dpkg.h (warningf): Rename to ...
+       (warning): ... this. Fix all callers.
+
 2008-11-19  Raphael Hertzog  <[EMAIL PROTECTED]>
 
        * scripts/Dpkg/Source/Functions.pm (fixperms): Fix chmod call to
diff --git a/lib/dpkg.h b/lib/dpkg.h
index e732e88..876b75e 100644
--- a/lib/dpkg.h
+++ b/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 ***/
 
diff --git a/lib/ehandle.c b/lib/ehandle.c
index 14efd95..55ceb77 100644
--- a/lib/ehandle.c
+++ b/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];
diff --git a/lib/myopt.c b/lib/myopt.c
index 2a1fbf3..a47da4e 100644
--- a/lib/myopt.c
+++ b/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;
   }
 

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to