summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
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