Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/mksunbootcd WARNS



details:   https://anonhg.NetBSD.org/src/rev/3ee99586c9c8
branches:  trunk
changeset: 472942:3ee99586c9c8
user:      ross <ross%NetBSD.org@localhost>
date:      Thu May 13 12:55:37 1999 +0000

description:
WARNS
include prototype for memset(3)

diffstat:

 distrib/utils/mksunbootcd/Makefile      |  3 ++-
 distrib/utils/mksunbootcd/mksunbootcd.c |  5 +++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r e35fcc4a9cc7 -r 3ee99586c9c8 distrib/utils/mksunbootcd/Makefile
--- a/distrib/utils/mksunbootcd/Makefile        Thu May 13 10:34:42 1999 +0000
+++ b/distrib/utils/mksunbootcd/Makefile        Thu May 13 12:55:37 1999 +0000
@@ -1,7 +1,8 @@
-#      $NetBSD: Makefile,v 1.1.1.1 1999/01/18 07:37:24 mrg Exp $
+#      $NetBSD: Makefile,v 1.2 1999/05/13 12:55:37 ross Exp $
 
 PROG=  mksunbootcd
 MAN=   mksunbootcd.1
+WARNS= 1
 
 .include <bsd.prog.mk>
 
diff -r e35fcc4a9cc7 -r 3ee99586c9c8 distrib/utils/mksunbootcd/mksunbootcd.c
--- a/distrib/utils/mksunbootcd/mksunbootcd.c   Thu May 13 10:34:42 1999 +0000
+++ b/distrib/utils/mksunbootcd/mksunbootcd.c   Thu May 13 12:55:37 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mksunbootcd.c,v 1.4 1999/02/16 23:34:10 is Exp $       */
+/*     $NetBSD: mksunbootcd.c,v 1.5 1999/05/13 12:55:37 ross Exp $     */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -52,6 +52,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <string.h>
 
 /*
  * How we work:
@@ -193,7 +194,7 @@
                sum ^= *sp++;   /* XXX no need to ntohs/htons for XOR */
        }
        sdl.sl_cksum = sum;
-       Dprintf(("label size is %d\n", sizeof(sdl)));
+       Dprintf(("label size is %lu\n", (long)sizeof(sdl)));
        Dprintf(("cksum computed is 0x%04x\n", ntohs(sum)));
 
        /* copy partition data to cd image */



Home | Main Index | Thread Index | Old Index