fix WARNS=2 for -DNO_CONV
This commit is contained in:
parent
8605a1aa68
commit
6848de8fe5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: args.c,v 1.17 2001/11/25 06:53:48 lukem Exp $ */
|
||||
/* $NetBSD: args.c,v 1.18 2001/11/25 06:57:55 lukem Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993, 1994
|
||||
|
@ -42,7 +42,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)args.c 8.3 (Berkeley) 4/2/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: args.c,v 1.17 2001/11/25 06:53:48 lukem Exp $");
|
||||
__RCSID("$NetBSD: args.c,v 1.18 2001/11/25 06:57:55 lukem Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -60,7 +60,9 @@ __RCSID("$NetBSD: args.c,v 1.17 2001/11/25 06:53:48 lukem Exp $");
|
|||
#include "extern.h"
|
||||
|
||||
static int c_arg(const void *, const void *);
|
||||
#ifndef NO_CONV
|
||||
static int c_conv(const void *, const void *);
|
||||
#endif
|
||||
static void f_bs(char *);
|
||||
static void f_cbs(char *);
|
||||
static void f_conv(char *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dd.c,v 1.21 2001/11/25 06:53:48 lukem Exp $ */
|
||||
/* $NetBSD: dd.c,v 1.22 2001/11/25 06:57:55 lukem Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993, 1994
|
||||
|
@ -47,7 +47,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993, 1994\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)dd.c 8.5 (Berkeley) 4/2/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: dd.c,v 1.21 2001/11/25 06:53:48 lukem Exp $");
|
||||
__RCSID("$NetBSD: dd.c,v 1.22 2001/11/25 06:57:55 lukem Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -124,8 +124,6 @@ main(int argc, char *argv[])
|
|||
static void
|
||||
setup(void)
|
||||
{
|
||||
u_int cnt;
|
||||
|
||||
if (in.name == NULL) {
|
||||
in.name = "stdin";
|
||||
in.fd = STDIN_FILENO;
|
||||
|
@ -201,6 +199,8 @@ setup(void)
|
|||
/* Should not get here, but just in case... */
|
||||
errx(1, "case conv and -DNO_CONV");
|
||||
#else /* NO_CONV */
|
||||
u_int cnt;
|
||||
|
||||
if (ddflags & C_ASCII || ddflags & C_EBCDIC) {
|
||||
if (ddflags & C_LCASE) {
|
||||
for (cnt = 0; cnt < 0377; ++cnt)
|
||||
|
|
Loading…
Reference in New Issue