diff options
author | bde <bde@FreeBSD.org> | 1998-08-02 14:41:34 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-08-02 14:41:34 +0000 |
commit | aaeb261fcc7eacef2d74ca1937e92075a2de6ff2 (patch) | |
tree | d8717cb573ed3440890858723efbbdc830a19047 /usr.sbin/mtree | |
parent | 950c1ed8023331a60b69fddd35acb5f1dfbb39d8 (diff) | |
download | FreeBSD-src-aaeb261fcc7eacef2d74ca1937e92075a2de6ff2.zip FreeBSD-src-aaeb261fcc7eacef2d74ca1937e92075a2de6ff2.tar.gz |
Fixed printf format errors.
Diffstat (limited to 'usr.sbin/mtree')
-rw-r--r-- | usr.sbin/mtree/compare.c | 6 | ||||
-rw-r--r-- | usr.sbin/mtree/create.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/mtree/compare.c b/usr.sbin/mtree/compare.c index 760bf64..105b137 100644 --- a/usr.sbin/mtree/compare.c +++ b/usr.sbin/mtree/compare.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)compare.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: compare.c,v 1.8 1997/10/01 06:30:00 charnier Exp $"; + "$Id: compare.c,v 1.9 1998/06/09 05:02:29 imp Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -119,7 +119,7 @@ typeerr: LABEL; if (s->flags & (F_UID | F_UNAME) && s->st_uid != p->fts_statp->st_uid) { LABEL; (void)printf("%suser (%lu, %lu", - tab, s->st_uid, p->fts_statp->st_uid); + tab, (u_long)s->st_uid, (u_long)p->fts_statp->st_uid); if (uflag) if (chown(p->fts_accpath, s->st_uid, -1)) (void)printf(", not modified: %s)\n", @@ -133,7 +133,7 @@ typeerr: LABEL; if (s->flags & (F_GID | F_GNAME) && s->st_gid != p->fts_statp->st_gid) { LABEL; (void)printf("%sgid (%lu, %lu", - tab, s->st_gid, p->fts_statp->st_gid); + tab, (u_long)s->st_gid, (u_long)p->fts_statp->st_gid); if (uflag) if (chown(p->fts_accpath, -1, s->st_gid)) (void)printf(", not modified: %s)\n", 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) |