summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2003-05-03 10:16:51 +0000
committermarkm <markm@FreeBSD.org>2003-05-03 10:16:51 +0000
commit8fbb9826c9227a9d32013339d1e0d9d267121ce9 (patch)
treefff51d121e0e5e35263e1f0e0d2f0280945a4c0b /bin
parentaed36bd1256f3e55a874ab60a7399fd76221e83d (diff)
downloadFreeBSD-src-8fbb9826c9227a9d32013339d1e0d9d267121ce9.zip
FreeBSD-src-8fbb9826c9227a9d32013339d1e0d9d267121ce9.tar.gz
Fix format warning. This is WARNS=9, std=c99 clean on i386.
Diffstat (limited to 'bin')
-rw-r--r--bin/stty/gfmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/stty/gfmt.c b/bin/stty/gfmt.c
index dbf2532..2406ecf 100644
--- a/bin/stty/gfmt.c
+++ b/bin/stty/gfmt.c
@@ -89,7 +89,7 @@ gread(struct termios *tp, char *s)
if (!(ep = strchr(p, '=')))
gerr(p);
*ep++ = '\0';
- (void)sscanf(ep, "%lx", &tmp);
+ (void)sscanf(ep, "%lx", (u_long *)&tmp);
#define CHK(s) (*p == s[0] && !strcmp(p, s))
if (CHK("cflag")) {
OpenPOWER on IntegriCloud