Source-Changes-HG archive

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

[src/trunk]: src/sbin/fsck_ext2fs Avoid -Wno-pointer-sign.



details:   https://anonhg.NetBSD.org/src/rev/28769fdc775a
branches:  trunk
changeset: 768020:28769fdc775a
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Aug 06 16:42:41 2011 +0000

description:
Avoid -Wno-pointer-sign.

diffstat:

 sbin/fsck_ext2fs/Makefile |   8 +-------
 sbin/fsck_ext2fs/pass5.c  |  10 +++++-----
 2 files changed, 6 insertions(+), 12 deletions(-)

diffs (64 lines):

diff -r 4c8ed55f05c7 -r 28769fdc775a sbin/fsck_ext2fs/Makefile
--- a/sbin/fsck_ext2fs/Makefile Sat Aug 06 16:39:40 2011 +0000
+++ b/sbin/fsck_ext2fs/Makefile Sat Aug 06 16:42:41 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.15 2011/06/20 07:44:00 mrg Exp $
+#      $NetBSD: Makefile,v 1.16 2011/08/06 16:42:41 dholland Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/5/93
 
 .include <bsd.own.mk>
@@ -15,9 +15,3 @@
 
 LDADD+=-lutil
 DPADD+=${LIBUTIL}
-
-.if defined(HAVE_GCC) || defined(HAVE_PCC)
-.for f in pass5 utilities
-COPTS.${f}.c+=  -Wno-pointer-sign
-.endfor
-.endif
diff -r 4c8ed55f05c7 -r 28769fdc775a sbin/fsck_ext2fs/pass5.c
--- a/sbin/fsck_ext2fs/pass5.c  Sat Aug 06 16:39:40 2011 +0000
+++ b/sbin/fsck_ext2fs/pass5.c  Sat Aug 06 16:42:41 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pass5.c,v 1.18 2011/08/06 16:39:40 dholland Exp $      */
+/*     $NetBSD: pass5.c,v 1.19 2011/08/06 16:42:41 dholland Exp $      */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -58,7 +58,7 @@
 #if 0
 static char sccsid[] = "@(#)pass5.c    8.6 (Berkeley) 11/30/94";
 #else
-__RCSID("$NetBSD: pass5.c,v 1.18 2011/08/06 16:39:40 dholland Exp $");
+__RCSID("$NetBSD: pass5.c,v 1.19 2011/08/06 16:42:41 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -77,7 +77,7 @@
 #include "extern.h"
 
 
-static void print_bmap(u_char *,u_int32_t);
+static void print_bmap(char *, uint32_t);
 
 void
 pass5(void)
@@ -263,7 +263,7 @@
 }
 
 static void 
-print_bmap(u_char *map, u_int32_t size)
+print_bmap(char *map, uint32_t size)
 {
        uint32_t i, j;
 
@@ -271,7 +271,7 @@
        while (i < size) {
                printf("%04x: ",i);
                for (j = 0; j < 16; j++, i++)
-                       printf("%02x ", (u_int)map[i] & 0xff);
+                       printf("%02x ", (unsigned char)map[i] & 0xff);
                printf("\n");
        }
 }



Home | Main Index | Thread Index | Old Index