summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjasoni <jasoni@cvs.openbsd.org>2001-07-02 16:51:47 +0000
committerjasoni <jasoni@cvs.openbsd.org>2001-07-02 16:51:47 +0000
commitc4cd0584be9f723071c376dcf7fde76c28f1fea8 (patch)
tree50d80ddc4620bf3a1a6a7cb4e29b609d5ef3eb81
parentc94c20ffc909c113bed250c61a1a69b8fb6656a0 (diff)
-Wall cleanup; ok millert@
-rw-r--r--usr.sbin/bad144/bad144.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bad144/bad144.c b/usr.sbin/bad144/bad144.c
index 2856495f188..c9c4ea645b7 100644
--- a/usr.sbin/bad144/bad144.c
+++ b/usr.sbin/bad144/bad144.c
@@ -39,7 +39,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)bad144.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: bad144.c,v 1.7 2000/12/09 14:51:03 deraadt Exp $";
+static char *rcsid = "$Id: bad144.c,v 1.8 2001/07/02 16:51:46 jasoni Exp $";
#endif not lint
/*
@@ -67,6 +67,7 @@ static char *rcsid = "$Id: bad144.c,v 1.7 2000/12/09 14:51:03 deraadt Exp $";
#include <stdlib.h>
#include <stdio.h>
#include <paths.h>
+#include <string.h>
#define RETRIES 10 /* number of retries on reading old sectors */
@@ -468,7 +469,7 @@ int
blkcopy(f, s1, s2)
daddr_t s1, s2;
{
- register tries, n;
+ register int tries, n;
if (buf == (char *)NULL) {
buf = malloc((unsigned)dp->d_secsize);