ALT Linux repos
S: | 1.2.4-alt5 |
5.0: | 0.99.11-alt3 |
4.1: | 0.99.18-alt0.M41.2 |
4.0: | 0.99.18-alt0.M40.1 |
3.0: | |
+backports: | 0.99.9-alt0.M30.4 |
Group :: Networking/Other
RPM: quagga
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: quagga.git-fc95186c30884c96543aecfc56cfe5b08774525b.patch
Download
Download
From: Christian Hammers <ch@debian.org>
Date: Wed, 23 Mar 2011 10:07:55 +0000 (+0300)
Subject: lib: fix more format warnings (#637)
X-Git-Url: http://code.quagga.net/cgi-bin/gitweb.cgi?p=quagga.git;a=commitdiff_plain;h=fc95186c30884c96543aecfc56cfe5b08774525b;hp=98e30f5db6dea65a5d6a176065cd0b60eb7bb001
lib: fix more format warnings (#637)
The following patch was also neccessary to compile.
* command.c: (config_logmsg_cmd) use "%s" format spec
* if.c: (connected_log) ditto
---
diff --git a/lib/command.c b/lib/command.c
index 5a13f39..264e0f7 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -3056,7 +3056,7 @@ DEFUN (config_logmsg,
if ((level = level_match(argv[0])) == ZLOG_DISABLED)
return CMD_ERR_NO_MATCH;
- zlog(NULL, level, ((message = argv_concat(argv, argc, 1)) ? message : ""));
+ zlog(NULL, level, "%s", ((message = argv_concat(argv, argc, 1)) ? message : ""));
if (message)
XFREE(MTYPE_TMP, message);
return CMD_SUCCESS;
diff --git a/lib/if.c b/lib/if.c
index b61bdbf..86f754b 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -664,7 +664,7 @@ connected_log (struct connected *connected, char *str)
strncat (logbuf, inet_ntop (p->family, &p->u.prefix, buf, BUFSIZ),
BUFSIZ - strlen(logbuf));
}
- zlog (NULL, LOG_INFO, logbuf);
+ zlog (NULL, LOG_INFO, "%s", logbuf);
}
/* If two connected address has same prefix return 1. */