mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-16 15:11:52 +00:00
Fixed printf format errors.
This commit is contained in:
parent
9d49508644
commit
92f896a9cc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38020
@ -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);
|
||||
|
@ -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",
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user