summaryrefslogtreecommitdiff
path: root/src/rc/rc-applets.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-10-08 15:56:47 +0000
committerRoy Marples <roy@marples.name>2008-10-08 15:56:47 +0000
commit8c8751fa60b529d190ca85857096cf741b0436de (patch)
tree4913d50a861ff45947d26fa75a29a97945536223 /src/rc/rc-applets.c
parent5cdc4895733ce3a723a5a58686a4d92a3c69c953 (diff)
downloadopenrc-8c8751fa60b529d190ca85857096cf741b0436de.tar.gz
openrc-8c8751fa60b529d190ca85857096cf741b0436de.tar.bz2
openrc-8c8751fa60b529d190ca85857096cf741b0436de.tar.xz
Clean up warnings regarding printf.
Diffstat (limited to 'src/rc/rc-applets.c')
-rw-r--r--src/rc/rc-applets.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/rc/rc-applets.c b/src/rc/rc-applets.c
index f5892f9..eea4a01 100644
--- a/src/rc/rc-applets.c
+++ b/src/rc/rc-applets.c
@@ -84,8 +84,8 @@ static int do_e(int argc, char **argv)
int level = 0;
struct timespec ts;
struct timeval stop, now;
- int (*e) (const char *, ...) __EINFO_PRINTF = NULL;
- int (*ee) (int, const char *, ...) __EEND_PRINTF = NULL;
+ int (*e) (const char *, ...) EINFO_PRINTF(1, 2) = NULL;
+ int (*ee) (int, const char *, ...) EINFO_PRINTF(2, 3) = NULL;
/* Punt applet */
argc--;
@@ -205,9 +205,10 @@ static int do_e(int argc, char **argv)
ee = eend;
else if (strcmp(applet, "ewend") == 0)
ee = ewend;
- else if (strcmp(applet, "esyslog") == 0)
- ee = elog;
- else if (strcmp(applet, "veinfo") == 0)
+ else if (strcmp(applet, "esyslog") == 0) {
+ elog(retval, "%s", message);
+ retval = 0;
+ } else if (strcmp(applet, "veinfo") == 0)
e = einfov;
else if (strcmp(applet, "veinfon") == 0)
e = einfovn;