Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/elf2aout Gcc, please shut up with those stupid warni...



details:   https://anonhg.NetBSD.org/src/rev/c21122296826
branches:  trunk
changeset: 343975:c21122296826
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Mar 07 22:16:38 2016 +0000

description:
Gcc, please shut up with those stupid warnings!

diffstat:

 usr.bin/elf2aout/elf2aout.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2e650f0f6320 -r c21122296826 usr.bin/elf2aout/elf2aout.c
--- a/usr.bin/elf2aout/elf2aout.c       Mon Mar 07 21:45:43 2016 +0000
+++ b/usr.bin/elf2aout/elf2aout.c       Mon Mar 07 22:16:38 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf2aout.c,v 1.18 2016/03/07 08:59:00 martin Exp $     */
+/*     $NetBSD: elf2aout.c,v 1.19 2016/03/07 22:16:38 martin Exp $     */
 
 /*
  * Copyright (c) 1995
@@ -370,7 +370,7 @@
        memset(outbuf, 0, sizeof outbuf);
 
        /* Find number of symbols to process... */
-       remaining = symsize / (off_t)sizeof(Elf32_Sym);
+       remaining = (ssize_t)(symsize / (off_t)sizeof(Elf32_Sym));
 
        /* Suck in the old string table... */
        oldstrings = saveRead(in, stroff, (size_t)strsize, "string table");



Home | Main Index | Thread Index | Old Index