Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen make this compile again.



details:   https://anonhg.NetBSD.org/src/rev/637c3efdce20
branches:  trunk
changeset: 547041:637c3efdce20
user:      christos <christos%NetBSD.org@localhost>
date:      Sun May 11 20:56:51 2003 +0000

description:
make this compile again.

diffstat:

 lib/libc/gen/nlist_elf32.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 32fd7b6c65d0 -r 637c3efdce20 lib/libc/gen/nlist_elf32.c
--- a/lib/libc/gen/nlist_elf32.c        Sun May 11 19:22:18 2003 +0000
+++ b/lib/libc/gen/nlist_elf32.c        Sun May 11 20:56:51 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nlist_elf32.c,v 1.22 2003/05/11 12:47:42 ragge Exp $ */
+/* $NetBSD: nlist_elf32.c,v 1.23 2003/05/11 20:56:51 christos Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou
@@ -113,7 +113,7 @@
        /*
         * Read the elf header of the file.
         */
-       if ((i = pread(fd, &ehdr, sizeof(Elf_Ehdr), 0)) == -1)
+       if ((ssize_t)(i = pread(fd, &ehdr, sizeof(Elf_Ehdr), (off_t)0)) == -1)
                BAD;
 
        /*



Home | Main Index | Thread Index | Old Index