Module Name: src Committed By: martin Date: Mon Mar 7 22:16:38 UTC 2016
Modified Files: src/usr.bin/elf2aout: elf2aout.c Log Message: Gcc, please shut up with those stupid warnings! To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/usr.bin/elf2aout/elf2aout.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/elf2aout/elf2aout.c diff -u src/usr.bin/elf2aout/elf2aout.c:1.18 src/usr.bin/elf2aout/elf2aout.c:1.19 --- src/usr.bin/elf2aout/elf2aout.c:1.18 Mon Mar 7 08:59:00 2016 +++ src/usr.bin/elf2aout/elf2aout.c Mon Mar 7 22:16:38 2016 @@ -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 @@ translate_syms(int out, int in, off_t sy 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");