From f67d0f0ce687c0177689ca8f7cb07101facd38b1 Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 27 Dec 1998 15:47:15 +0000 Subject: Fixed type mismatches in args to __syscall(). One for mmap() broke on i386's with 64-bit longs -- the padding between mmap()'s 5th and 6th is an int, not a long. The other mismatches were benign. --- lib/csu/i386/crt0.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/csu') diff --git a/lib/csu/i386/crt0.c b/lib/csu/i386/crt0.c index 8286e74..4989c5c5 100644 --- a/lib/csu/i386/crt0.c +++ b/lib/csu/i386/crt0.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: crt0.c,v 1.33 1998/02/09 06:05:09 jdp Exp $ + * $Id: crt0.c,v 1.34 1998/02/11 04:57:12 jdp Exp $ */ #include @@ -115,14 +115,14 @@ void monstartup(void *low, void *high); #define _exit(v) \ __syscall(SYS_exit, (int)(v)) #define _open(name, f, m) \ - __syscall(SYS_open, (char *)(name), (int)(f), (int)(m)) + __syscall(SYS_open, (const char *)(name), (int)(f), (int)(m)) #define _read(fd, s, n) \ __syscall(SYS_read, (int)(fd), (void *)(s), (size_t)(n)) #define _write(fd, s, n) \ - __syscall(SYS_write, (int)(fd), (void *)(s), (size_t)(n)) + __syscall(SYS_write, (int)(fd), (const void *)(s), (size_t)(n)) #define _mmap(addr, len, prot, flags, fd, off) \ - (caddr_t) __syscall(SYS_mmap, (caddr_t)(addr), (size_t)(len), \ - (int)(prot), (int)(flags), (int)(fd), (long)0L, (off_t)(off)) + (void *) __syscall(SYS_mmap, (void *)(addr), (size_t)(len), \ + (int)(prot), (int)(flags), (int)(fd), 0, (off_t)(off)) #define _PUTNMSG(str, len) _write(2, (str), (len)) #define _PUTMSG(str) _PUTNMSG((str), sizeof (str) - 1) -- cgit v1.1