Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.sbin/mtree Pull up revision 1.26 (via patch, reques...



details:   https://anonhg.NetBSD.org/src/rev/fef1f69c4388
branches:  netbsd-1-4
changeset: 471110:fef1f69c4388
user:      he <he%NetBSD.org@localhost>
date:      Thu Oct 19 17:01:29 2000 +0000

description:
Pull up revision 1.26 (via patch, requested by he):
  Format string cleanup.

diffstat:

 usr.sbin/mtree/create.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 959402516c30 -r fef1f69c4388 usr.sbin/mtree/create.c
--- a/usr.sbin/mtree/create.c   Thu Oct 19 17:01:09 2000 +0000
+++ b/usr.sbin/mtree/create.c   Thu Oct 19 17:01:29 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: create.c,v 1.21.2.2 2000/10/19 14:54:26 he Exp $       */
+/*     $NetBSD: create.c,v 1.21.2.3 2000/10/19 17:01:29 he Exp $       */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)create.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: create.c,v 1.21.2.2 2000/10/19 14:54:26 he Exp $");
+__RCSID("$NetBSD: create.c,v 1.21.2.3 2000/10/19 17:01:29 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -72,7 +72,8 @@
 static char codebuf[4*MAXPATHLEN + 1];
 
 static int     dsort __P((const FTSENT **, const FTSENT **));
-static void    output __P((int *, const char *, ...));
+static void    output __P((int *, const char *, ...))
+       __attribute__((__format__(__printf__, 2, 3)));
 static int     statd __P((FTS *, FTSENT *, uid_t *, gid_t *, mode_t *,
                           u_long *));
 static void    statf __P((FTSENT *));
@@ -180,7 +181,7 @@
                    crc(fd, &val, &len))
                        mtree_err("%s: %s", p->fts_accpath, strerror(errno));
                (void)close(fd);
-               output(&indent, "cksum=%lu", val);
+               output(&indent, "cksum=%lu", (long)val);
        }
        if (keys & F_SLINK &&
            (p->fts_info == FTS_SL || p->fts_info == FTS_SLNONE))



Home | Main Index | Thread Index | Old Index