From 9aff3bce59ef4d8140c0821e020f4f2fe2d99df4 Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 28 Jun 1998 18:08:54 +0000 Subject: Fixed printf format errors. --- bin/stty/gfmt.c | 8 +++++--- bin/stty/key.c | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'bin/stty') diff --git a/bin/stty/gfmt.c b/bin/stty/gfmt.c index 6e66537..4ebd2e9 100644 --- a/bin/stty/gfmt.c +++ b/bin/stty/gfmt.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)gfmt.c 8.6 (Berkeley) 4/2/94"; #endif static const char rcsid[] = - "$Id$"; + "$Id: gfmt.c,v 1.8 1998/05/18 06:48:13 charnier Exp $"; #endif /* not lint */ #include @@ -67,10 +67,12 @@ gprint(tp, wp, ldisc) struct cchar *cp; (void)printf("gfmt1:cflag=%lx:iflag=%lx:lflag=%lx:oflag=%lx:", - tp->c_cflag, tp->c_iflag, tp->c_lflag, tp->c_oflag); + (u_long)tp->c_cflag, (u_long)tp->c_iflag, (u_long)tp->c_lflag, + (u_long)tp->c_oflag); for (cp = cchars1; cp->name; ++cp) (void)printf("%s=%x:", cp->name, tp->c_cc[cp->sub]); - (void)printf("ispeed=%ld:ospeed=%ld\n", cfgetispeed(tp), cfgetospeed(tp)); + (void)printf("ispeed=%lu:ospeed=%lu\n", + (u_long)cfgetispeed(tp), (u_long)cfgetospeed(tp)); } void diff --git a/bin/stty/key.c b/bin/stty/key.c index d5f8605..aeeeb9c 100644 --- a/bin/stty/key.c +++ b/bin/stty/key.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)key.c 8.3 (Berkeley) 4/2/94"; #else static const char rcsid[] = - "$Id$"; + "$Id: key.c,v 1.9 1997/08/24 00:26:12 steve Exp $"; #endif #endif /* not lint */ @@ -289,7 +289,7 @@ f_speed(ip) struct info *ip; { - (void)printf("%ld\n", cfgetospeed(&ip->t)); + (void)printf("%lu\n", (u_long)cfgetospeed(&ip->t)); } void -- cgit v1.1