[Pkg-wmaker-commits] [wmifinfo] 33/49: wmifinfo: Fix -Wformat compiler warnings.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Tue Aug 18 02:07:43 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmifinfo.
commit 0f8d6fc91b828cc25cc4bcc0ecca48c79220e971
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Mon Dec 8 21:01:54 2014 -0600
wmifinfo: Fix -Wformat compiler warnings.
---
nwn.c | 2 +-
wmifinfo.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/nwn.c b/nwn.c
index 0602b27..281b665 100644
--- a/nwn.c
+++ b/nwn.c
@@ -65,7 +65,7 @@ int nwn_get_link(char *ifname)
if((inbssid == 1) &&
(strcmp(key, "Quality") == 0)) {
- sscanf(val, "%X", &link);
+ sscanf(val, "%X", (unsigned int *) &link);
link *= 4;
inbssid = 0;
}
diff --git a/wmifinfo.c b/wmifinfo.c
index 827afec..438423f 100644
--- a/wmifinfo.c
+++ b/wmifinfo.c
@@ -512,7 +512,8 @@ int getifinfo(char *ifname, struct ifinfo_t *info)
fseek(froute, 0, 0);
while(fgets(buf, sizeof(buf), froute)) {
- sscanf(buf, "%s %x %x", a, &b, &c);
+ sscanf(buf, "%s %x %x", a, (unsigned int *) &b,
+ (unsigned int *) &c);
if((strcmp(a, info->id) == 0) && (b == 0)) {
info->gw = c;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmifinfo.git
More information about the Pkg-wmaker-commits
mailing list