diff options
author | 2011-11-20 19:49:58 -0500 | |
---|---|---|
committer | 2011-11-20 19:49:58 -0500 | |
commit | c5e8dfb6877b0410e75fbe9f8a66dd9e226eda72 (patch) | |
tree | 23cad1167876b3b70d778e84b77c5674339071ac | |
parent | fix up signed/unsigned warnings (diff) | |
download | net-tools-c5e8dfb6877b0410e75fbe9f8a66dd9e226eda72.tar.gz net-tools-c5e8dfb6877b0410e75fbe9f8a66dd9e226eda72.tar.bz2 net-tools-c5e8dfb6877b0410e75fbe9f8a66dd9e226eda72.zip |
fix "format not a string literal" warnings
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | mii-tool.c | 2 | ||||
-rw-r--r-- | rarp.c | 2 | ||||
-rw-r--r-- | slattach.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -271,7 +271,7 @@ int show_basic_mii(int sock, int phy_id) if (opt_watch) { if (opt_log) { - syslog(LOG_INFO, buf); + syslog(LOG_INFO, "%s", buf); } else { char s[20]; time_t t = time(NULL); @@ -226,7 +226,7 @@ int main(int argc, char **argv) case 'h': usage(); case 'V': - fprintf(stderr, version_string); + fputs(version_string, stderr); exit(E_VERSION); break; case 'v': @@ -569,7 +569,7 @@ usage(void) "[-c cmd] [-s speed] [-p protocol] tty | -\n" " slattach -V | --version\n"; - fprintf(stderr, usage_msg); + fputs(usage_msg, stderr); exit(1); } |