aboutsummaryrefslogtreecommitdiff
path: root/bin/dd/dd.c
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2002-02-22 20:51:00 +0000
committerMark Murray <markm@FreeBSD.org>2002-02-22 20:51:00 +0000
commit9afa09cd0eb32581d301f6b9f9dc252e2a879a05 (patch)
treeba3cea9a04974b56b589e2a934d2f4ae56780dce /bin/dd/dd.c
parent71bea4f79d94bcf6f2423e80306d79ae46c5e0e2 (diff)
downloadsrc-9afa09cd0eb32581d301f6b9f9dc252e2a879a05.tar.gz
src-9afa09cd0eb32581d301f6b9f9dc252e2a879a05.zip
Fix warnings inspired by lint, a commercial lint and WARNS=4.
Notes
Notes: svn path=/head/; revision=91079
Diffstat (limited to 'bin/dd/dd.c')
-rw-r--r--bin/dd/dd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/dd/dd.c b/bin/dd/dd.c
index 52d41440d2f7..cdd358e7d288 100644
--- a/bin/dd/dd.c
+++ b/bin/dd/dd.c
@@ -54,7 +54,6 @@ static const char rcsid[] =
#include <sys/conf.h>
#include <sys/disklabel.h>
#include <sys/filio.h>
-#include <sys/time.h>
#include <ctype.h>
#include <err.h>
@@ -78,8 +77,8 @@ IO in, out; /* input/output state */
STAT st; /* statistics */
void (*cfunc)(void); /* conversion function */
u_quad_t cpy_cnt; /* # of blocks to copy */
-off_t pending = 0; /* pending seek if sparse */
-u_int ddflags; /* conversion options */
+static off_t pending = 0; /* pending seek if sparse */
+u_int ddflags = 0; /* conversion options */
size_t cbsz; /* conversion block size */
quad_t files_cnt = 1; /* # of files to copy */
const u_char *ctab; /* conversion table */