From 5fa3142cdbb67cbb8287b2ec4fc35ee6532b3c6d Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Thu, 16 May 2019 11:47:54 -0500 Subject: bin/dd: make buildable with libbsd --- bin/dd/conv.c | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'bin/dd/conv.c') diff --git a/bin/dd/conv.c b/bin/dd/conv.c index d4a8a09..4c85c9d 100644 --- a/bin/dd/conv.c +++ b/bin/dd/conv.c @@ -33,15 +33,6 @@ * SUCH DAMAGE. */ -#include -#ifndef lint -#if 0 -static char sccsid[] = "@(#)conv.c 8.3 (Berkeley) 4/2/94"; -#else -__RCSID("$NetBSD: conv.c,v 1.17 2003/08/07 09:05:10 agc Exp $"); -#endif -#endif /* not lint */ - #include #include @@ -62,8 +53,8 @@ void def(void) { uint64_t cnt; - u_char *inp; - const u_char *t; + uint8_t *inp; + const uint8_t *t; if ((t = ctab) != NULL) for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp) @@ -119,8 +110,8 @@ block(void) static int intrunc; int ch = 0; /* pacify gcc */ uint64_t cnt, maxlen; - u_char *inp, *outp; - const u_char *t; + uint8_t *inp, *outp; + const uint8_t *t; /* * Record truncation can cross block boundaries. If currently in a @@ -230,8 +221,8 @@ void unblock(void) { uint64_t cnt; - u_char *inp; - const u_char *t; + uint8_t *inp; + const uint8_t *t; /* Translation and case conversion. */ if ((t = ctab) != NULL) @@ -264,7 +255,7 @@ void unblock_close(void) { uint64_t cnt; - u_char *t; + uint8_t *t; if (in.dbcnt) { warnx("%s: short input record", in.name); -- cgit v1.2.3-70-g09d2