48 lines
1.0 KiB
Diff
48 lines
1.0 KiB
Diff
Subject: Fix improper format function usage.
|
|
|
|
--- a/rarp.c
|
|
+++ b/rarp.c
|
|
@@ -44,7 +44,7 @@
|
|
|
|
static char no_rarp_message[] = N_("This kernel does not support RARP.\n");
|
|
|
|
-static char version_string[] = RELEASE "\nrarp 1.03 (2001-04-04)\n";
|
|
+static char version_string[] = RELEASE "\nrarp 1.03 (2001-04-04)";
|
|
|
|
static struct hwtype *hardware = NULL;
|
|
|
|
@@ -226,7 +226,7 @@
|
|
case 'h':
|
|
usage();
|
|
case 'V':
|
|
- fprintf(stderr, version_string);
|
|
+ fputs(version_string, stderr);
|
|
exit(E_VERSION);
|
|
break;
|
|
case 'v':
|
|
--- a/slattach.c
|
|
+++ b/slattach.c
|
|
@@ -565,9 +565,9 @@
|
|
"[-o outfill] "
|
|
#endif
|
|
"[-c cmd] [-s speed] [-p protocol] tty | -\n"
|
|
- " slattach -V | --version\n";
|
|
+ " slattach -V | --version";
|
|
|
|
- fprintf(stderr, usage_msg);
|
|
+ fputs(usage_msg, stderr);
|
|
exit(1);
|
|
}
|
|
|
|
--- a/mii-tool.c
|
|
+++ b/mii-tool.c
|
|
@@ -271,7 +271,7 @@
|
|
|
|
if (opt_watch) {
|
|
if (opt_log) {
|
|
- syslog(LOG_INFO, buf);
|
|
+ syslog(LOG_INFO, "%s", buf);
|
|
} else {
|
|
char s[20];
|
|
time_t t = time(NULL);
|