diff options
author | bde <bde@FreeBSD.org> | 1998-06-28 18:08:54 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-06-28 18:08:54 +0000 |
commit | 9aff3bce59ef4d8140c0821e020f4f2fe2d99df4 (patch) | |
tree | 302d4901b20fd09298aecbb31efa99fc42114ecf /bin | |
parent | 76574381d965b896d8abe5608dd71e1083a715be (diff) | |
download | FreeBSD-src-9aff3bce59ef4d8140c0821e020f4f2fe2d99df4.zip FreeBSD-src-9aff3bce59ef4d8140c0821e020f4f2fe2d99df4.tar.gz |
Fixed printf format errors.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/stty/gfmt.c | 8 | ||||
-rw-r--r-- | bin/stty/key.c | 4 |
2 files changed, 7 insertions, 5 deletions
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 <sys/types.h> @@ -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 |