diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-22 12:00:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-22 12:00:45 +0000 |
commit | d3c0e996ee9caa0a77ccb7378d4acc77326d58ae (patch) | |
tree | da1bde31f886562becc89c8545b96e98932bc6d4 /sys | |
parent | d4de623de508fd984fad82be2055a5b0ecad8de3 (diff) |
obviously killing gcc warnings is more important than keeping this library small
Diffstat (limited to 'sys')
-rw-r--r-- | sys/lib/libsa/exec.c | 10 | ||||
-rw-r--r-- | sys/lib/libsa/nfs.c | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/lib/libsa/exec.c b/sys/lib/libsa/exec.c index 32c87bb509a..ba82c940aba 100644 --- a/sys/lib/libsa/exec.c +++ b/sys/lib/libsa/exec.c @@ -1,4 +1,4 @@ -/* $NetBSD: exec.c,v 1.11 1995/10/20 00:47:47 cgd Exp $ */ +/* $NetBSD: exec.c,v 1.12 1996/05/14 10:28:18 leo Exp $ */ /*- * Copyright (c) 1982, 1986, 1990, 1993 @@ -83,7 +83,7 @@ exec(path, loadaddr, howto) } /* Text */ - printf("%d", x.a_text); + printf("%ld", x.a_text); addr = loadaddr; #ifdef NO_LSEEK if (N_GETMAGIC(x) == ZMAGIC && read(io, (char *)addr, 0x400) == -1) @@ -99,13 +99,13 @@ exec(path, loadaddr, howto) *addr++ = 0; /* Data */ - printf("+%d", x.a_data); + printf("+%ld", x.a_data); if (read(io, addr, x.a_data) != x.a_data) goto shread; addr += x.a_data; /* Bss */ - printf("+%d", x.a_bss); + printf("+%ld", x.a_bss); for (i = 0; i < x.a_bss; i++) *addr++ = 0; @@ -113,7 +113,7 @@ exec(path, loadaddr, howto) ssym = addr; bcopy(&x.a_syms, addr, sizeof(x.a_syms)); addr += sizeof(x.a_syms); - printf("+[%d", x.a_syms); + printf("+[%ld", x.a_syms); if (read(io, addr, x.a_syms) != x.a_syms) goto shread; addr += x.a_syms; diff --git a/sys/lib/libsa/nfs.c b/sys/lib/libsa/nfs.c index 7aedb5f1b8c..bd4163616f1 100644 --- a/sys/lib/libsa/nfs.c +++ b/sys/lib/libsa/nfs.c @@ -1,5 +1,5 @@ -/* $OpenBSD: nfs.c,v 1.2 1996/04/19 16:09:50 niklas Exp $ */ -/* $NetBSD: nfs.c,v 1.14 1996/02/26 23:05:21 gwr Exp $ */ +/* $OpenBSD: nfs.c,v 1.3 1996/05/22 12:00:44 deraadt Exp $ */ +/* $NetBSD: nfs.c,v 1.15 1996/05/14 10:28:26 leo Exp $ */ /*- * Copyright (c) 1993 John Brezak @@ -275,7 +275,7 @@ nfs_readdata(d, off, addr, len) rlen = cc - hlen; x = ntohl(repl->count); if (rlen < x) { - printf("nfsread: short packet, %d < %d\n", rlen, x); + printf("nfsread: short packet, %d < %ld\n", rlen, x); errno = EBADRPC; return(-1); } |