]> git.cameronkatri.com Git - bsd-progress.git/commitdiff
Make this build on non-i386 platforms.
authoragc <agc@NetBSD.org>
Wed, 22 Jan 2003 10:44:17 +0000 (10:44 +0000)
committeragc <agc@NetBSD.org>
Wed, 22 Jan 2003 10:44:17 +0000 (10:44 +0000)
progress.c

index 05c8fdb999e10c80be5b4ede31dc4120cd1f28f3..f5422de0914fe54acee6b24f406b31e88577fb67 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: progress.c,v 1.4 2003/01/22 04:11:34 jhawk Exp $ */
+/*     $NetBSD: progress.c,v 1.5 2003/01/22 10:44:17 agc Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: progress.c,v 1.4 2003/01/22 04:11:34 jhawk Exp $");
+__RCSID("$NetBSD: progress.c,v 1.5 2003/01/22 10:44:17 agc Exp $");
 #endif                         /* not lint */
 
 #include <sys/types.h>
@@ -207,7 +207,8 @@ main(int argc, char *argv[])
                for (off = 0; nr; nr -= nw, off += nw, bytes += nw)
                        if ((nw = write(outpipe[1], fb_buf + off,
                            (size_t) nr)) < 0)
-                               err(1, "writing %d bytes to output pipe", nr);
+                               err(1, "writing %u bytes to output pipe",
+                                                       (unsigned) nr);
        close(outpipe[1]);
 
        wait(&waitstat);