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 | |
parent | 950c1ed8023331a60b69fddd35acb5f1dfbb39d8 (diff) | |
download | FreeBSD-src-aaeb261fcc7eacef2d74ca1937e92075a2de6ff2.zip FreeBSD-src-aaeb261fcc7eacef2d74ca1937e92075a2de6ff2.tar.gz |
Fixed printf format errors.
-rw-r--r-- | lib/libc/gen/getbsize.c | 2 | ||||
-rw-r--r-- | usr.sbin/mtree/compare.c | 6 | ||||
-rw-r--r-- | usr.sbin/mtree/create.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/gen/getbsize.c b/lib/libc/gen/getbsize.c index a35ad72..6f951e7 100644 --- a/lib/libc/gen/getbsize.c +++ b/lib/libc/gen/getbsize.c @@ -99,7 +99,7 @@ underflow: warnx("minimum blocksize is 512"); } else blocksize = n = 512; - (void)snprintf(header, sizeof(header), "%d%s-blocks", n, form); + (void)snprintf(header, sizeof(header), "%ld%s-blocks", n, form); *headerlenp = strlen(header); *blocksizep = blocksize; return (header); 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) |