summaryrefslogtreecommitdiffstats
path: root/bin/dd/dd.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-02-22 20:51:00 +0000
committermarkm <markm@FreeBSD.org>2002-02-22 20:51:00 +0000
commit7b7558d88436331476243b0b668d2e257d7687fe (patch)
treeba3cea9a04974b56b589e2a934d2f4ae56780dce /bin/dd/dd.c
parentf24931e332589b25b779130a37d5f3491e609025 (diff)
downloadFreeBSD-src-7b7558d88436331476243b0b668d2e257d7687fe.zip
FreeBSD-src-7b7558d88436331476243b0b668d2e257d7687fe.tar.gz
Fix warnings inspired by lint, a commercial lint and WARNS=4.
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 52d4144..cdd358e 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 */
OpenPOWER on IntegriCloud