summaryrefslogtreecommitdiff
path: root/bin/pax/gen_subs.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-06-11 06:41:56 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-06-11 06:41:56 +0000
commit8a9719310ac5463126ef3eec984d2d38f58e851e (patch)
tree7eeb0f7c13108018057e83b9666bc315c747c21e /bin/pax/gen_subs.c
parent8db8a379747ee056c46b16e020c29c8a5829e357 (diff)
Correct compile warnings
Rename warn() to paxwarn() so <err.h> can be included Remove #include <ctype.h> when not needed; from FreeBSD
Diffstat (limited to 'bin/pax/gen_subs.c')
-rw-r--r--bin/pax/gen_subs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/pax/gen_subs.c b/bin/pax/gen_subs.c
index f72dc5460ed..11e4d339b9f 100644
--- a/bin/pax/gen_subs.c
+++ b/bin/pax/gen_subs.c
@@ -50,7 +50,6 @@ static char rcsid[] = "$NetBSD: gen_subs.c,v 1.5 1995/03/21 09:07:26 cgd Exp $";
#include <sys/stat.h>
#include <sys/param.h>
#include <stdio.h>
-#include <ctype.h>
#include <tzfile.h>
#include <utmp.h>
#include <unistd.h>
@@ -139,9 +138,9 @@ ls_list(arcn, now)
# ifdef NET2_STAT
(void)printf("%4u,%4u ", MAJOR(sbp->st_rdev),
# else
- (void)printf("%4lu,%4lu ", MAJOR(sbp->st_rdev),
+ (void)printf("%4lu,%4lu ", (unsigned long)MAJOR(sbp->st_rdev),
# endif
- MINOR(sbp->st_rdev));
+ (unsigned long)MINOR(sbp->st_rdev));
else {
# ifdef NET2_STAT
(void)printf("%9lu ", sbp->st_size);