summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree/create.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-02 14:41:34 +0000
committerbde <bde@FreeBSD.org>1998-08-02 14:41:34 +0000
commitaaeb261fcc7eacef2d74ca1937e92075a2de6ff2 (patch)
treed8717cb573ed3440890858723efbbdc830a19047 /usr.sbin/mtree/create.c
parent950c1ed8023331a60b69fddd35acb5f1dfbb39d8 (diff)
downloadFreeBSD-src-aaeb261fcc7eacef2d74ca1937e92075a2de6ff2.zip
FreeBSD-src-aaeb261fcc7eacef2d74ca1937e92075a2de6ff2.tar.gz
Fixed printf format errors.
Diffstat (limited to 'usr.sbin/mtree/create.c')
-rw-r--r--usr.sbin/mtree/create.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/mtree/create.c b/usr.sbin/mtree/create.c
index 38f7d55..af9f504 100644
--- a/usr.sbin/mtree/create.c
+++ b/usr.sbin/mtree/create.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)create.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id: create.c,v 1.9 1997/10/01 06:30:00 charnier Exp $";
+ "$Id: create.c,v 1.10 1998/06/05 14:43:39 peter Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -285,7 +285,7 @@ statd(t, parent, puid, pgid, pmode)
"line %d: could not get uname for uid=%u",
lineno, saveuid);
if (keys & F_UID)
- (void)printf(" uid=%lu", saveuid);
+ (void)printf(" uid=%lu", (u_long)saveuid);
if (keys & F_GNAME)
if ((gr = getgrgid(savegid)) != NULL)
(void)printf(" gname=%s", gr->gr_name);
@@ -294,7 +294,7 @@ statd(t, parent, puid, pgid, pmode)
"line %d: could not get gname for gid=%u",
lineno, savegid);
if (keys & F_GID)
- (void)printf(" gid=%lu", savegid);
+ (void)printf(" gid=%lu", (u_long)savegid);
if (keys & F_MODE)
(void)printf(" mode=%#o", savemode);
if (keys & F_NLINK)
OpenPOWER on IntegriCloud