From 2c922baaa93dfa561986acace5008e7d78d8c1fb Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 26 Jul 2009 03:05:52 +0000 Subject: Remove the need for -Wno-pointer-sign. Object file unchanged. --- pom/Makefile | 6 +----- pom/pom.c | 8 ++++---- 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'pom') diff --git a/pom/Makefile b/pom/Makefile index 159ba921..755f2ea1 100644 --- a/pom/Makefile +++ b/pom/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2008/08/29 00:02:22 gmcgarry Exp $ +# $NetBSD: Makefile,v 1.8 2009/07/26 03:05:52 dholland Exp $ # @(#)Makefile 8.1 (Berkeley) 5/31/93 PROG= pom @@ -7,7 +7,3 @@ DPADD= ${LIBM} LDADD= -lm .include - -.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC) -COPTS.pom.c+= -Wno-pointer-sign -.endif diff --git a/pom/pom.c b/pom/pom.c index 75ae84ed..85bba8cb 100644 --- a/pom/pom.c +++ b/pom/pom.c @@ -1,4 +1,4 @@ -/* $NetBSD: pom.c,v 1.17 2008/07/20 01:03:22 lukem Exp $ */ +/* $NetBSD: pom.c,v 1.18 2009/07/26 03:05:52 dholland Exp $ */ /* * Copyright (c) 1989, 1993 @@ -41,7 +41,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\ #if 0 static char sccsid[] = "@(#)pom.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pom.c,v 1.17 2008/07/20 01:03:22 lukem Exp $"); +__RCSID("$NetBSD: pom.c,v 1.18 2009/07/26 03:05:52 dholland Exp $"); #endif #endif /* not lint */ @@ -214,10 +214,10 @@ parsetime(char *p) int bigyear; int yearset = 0; time_t tval; - unsigned char *t; + char *t; for (t = p; *t; ++t) { - if (isdigit(*t)) + if (isdigit((unsigned char) *t)) continue; badformat(); } -- cgit v1.2.3-56-ge451