Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/mtree Fix printf format.



details:   https://anonhg.NetBSD.org/src/rev/84ede2bb1ade
branches:  trunk
changeset: 514851:84ede2bb1ade
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Sep 11 15:10:45 2001 +0000

description:
Fix printf format.

diffstat:

 usr.sbin/mtree/misc.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 16acade6104c -r 84ede2bb1ade usr.sbin/mtree/misc.c
--- a/usr.sbin/mtree/misc.c     Tue Sep 11 12:25:18 2001 +0000
+++ b/usr.sbin/mtree/misc.c     Tue Sep 11 15:10:45 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: misc.c,v 1.11 2001/09/10 03:22:24 lukem Exp $  */
+/*     $NetBSD: misc.c,v 1.12 2001/09/11 15:10:45 thorpej Exp $        */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: misc.c,v 1.11 2001/09/10 03:22:24 lukem Exp $");
+__RCSID("$NetBSD: misc.c,v 1.12 2001/09/11 15:10:45 thorpej Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -141,7 +141,8 @@
        (void)fprintf(stderr, "\n");
        if (lineno)
                (void)fprintf(stderr,
-                   "mtree: failed at line %d of the specification\n", lineno);
+                   "mtree: failed at line %lu of the specification\n",
+                   (u_long) lineno);
        exit(1);
        /* NOTREACHED */
 }



Home | Main Index | Thread Index | Old Index