summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2008-12-05 06:33:03 +0200
committerGuillem Jover <guillem@debian.org>2008-12-05 06:33:03 +0200
commit778eaba6b21678a54cf0f83a960f93f65bc83742 (patch)
tree72e09f10136420e6e7824d6288a1066c34ce10cb /lib
parent9561a6c4497cbf69f3d9d3a50284459b3e1027ac (diff)
downloaddpkg-778eaba6b21678a54cf0f83a960f93f65bc83742.tar.gz
libdpkg: Rename warningf() to warning()
Diffstat (limited to 'lib')
-rw-r--r--lib/dpkg.h2
-rw-r--r--lib/ehandle.c4
-rw-r--r--lib/myopt.c2
3 files changed, 5 insertions, 3 deletions
diff --git a/lib/dpkg.h b/lib/dpkg.h
index e732e88b8..876b75e5b 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 14efd95c4..55ceb77f9 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 2a1fbf31e..a47da4eee 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;
}