From c6030c6511c69b69a216c893957b01bfc264d365 Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 19 Mar 1995 13:29:28 +0000 Subject: You will find enclosed some changes to make gcc -Wall more happy in /usr/src/bin. Note that some patches are still needed in that directory. I (Joerg) finished most of Philippe's cleanup. /bin/sh will still need *allot* of work, however. Submitted by: charnier@lirmm.fr (Philippe Charnier) --- bin/stty/gfmt.c | 6 +++--- bin/stty/key.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/stty') diff --git a/bin/stty/gfmt.c b/bin/stty/gfmt.c index b0bf79a..880c122 100644 --- a/bin/stty/gfmt.c +++ b/bin/stty/gfmt.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: gfmt.c,v 1.2 1994/09/24 02:58:57 davidg Exp $ */ #ifndef lint @@ -64,11 +64,11 @@ gprint(tp, wp, ldisc) { struct cchar *cp; - (void)printf("gfmt1:cflag=%x:iflag=%x:lflag=%x:oflag=%x:", + (void)printf("gfmt1:cflag=%lx:iflag=%lx:lflag=%lx:oflag=%lx:", tp->c_cflag, tp->c_iflag, tp->c_lflag, tp->c_oflag); for (cp = cchars1; cp->name; ++cp) (void)printf("%s=%x:", cp->name, tp->c_cc[cp->sub]); - (void)printf("ispeed=%d:ospeed=%d\n", cfgetispeed(tp), cfgetospeed(tp)); + (void)printf("ispeed=%ld:ospeed=%ld\n", cfgetispeed(tp), cfgetospeed(tp)); } void diff --git a/bin/stty/key.c b/bin/stty/key.c index 4b388d2..bc7cf56 100644 --- a/bin/stty/key.c +++ b/bin/stty/key.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: key.c,v 1.2 1994/09/24 02:58:58 davidg Exp $ */ #ifndef lint @@ -286,7 +286,7 @@ f_speed(ip) struct info *ip; { - (void)printf("%d\n", cfgetospeed(&ip->t)); + (void)printf("%ld\n", cfgetospeed(&ip->t)); } void -- cgit v1.1