make this mostly WARNS=2 safe
This commit is contained in:
parent
c559c94a45
commit
98df36b3a5
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: compare.c,v 1.29 2001/10/09 04:50:00 lukem Exp $ */
|
/* $NetBSD: compare.c,v 1.30 2001/10/18 04:37:56 lukem Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1989, 1993
|
* Copyright (c) 1989, 1993
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)compare.c 8.1 (Berkeley) 6/6/93";
|
static char sccsid[] = "@(#)compare.c 8.1 (Berkeley) 6/6/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: compare.c,v 1.29 2001/10/09 04:50:00 lukem Exp $");
|
__RCSID("$NetBSD: compare.c,v 1.30 2001/10/18 04:37:56 lukem Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -114,8 +114,7 @@ compare(const char *name, NODE *s, FTSENT *p)
|
||||||
{
|
{
|
||||||
u_int32_t len, val, flags;
|
u_int32_t len, val, flags;
|
||||||
int fd, label;
|
int fd, label;
|
||||||
const char *cp;
|
const char *cp, *tab;
|
||||||
char *tab;
|
|
||||||
char md5buf[35];
|
char md5buf[35];
|
||||||
|
|
||||||
tab = NULL;
|
tab = NULL;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: create.c,v 1.32 2001/10/09 04:50:01 lukem Exp $ */
|
/* $NetBSD: create.c,v 1.33 2001/10/18 04:37:56 lukem Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1989, 1993
|
* Copyright (c) 1989, 1993
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)create.c 8.1 (Berkeley) 6/6/93";
|
static char sccsid[] = "@(#)create.c 8.1 (Berkeley) 6/6/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: create.c,v 1.32 2001/10/09 04:50:01 lukem Exp $");
|
__RCSID("$NetBSD: create.c,v 1.33 2001/10/18 04:37:56 lukem Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -84,15 +84,15 @@ cwalk(void)
|
||||||
{
|
{
|
||||||
FTS *t;
|
FTS *t;
|
||||||
FTSENT *p;
|
FTSENT *p;
|
||||||
time_t clock;
|
time_t clocktime;
|
||||||
char *argv[2], host[MAXHOSTNAMELEN + 1];
|
char *argv[2], host[MAXHOSTNAMELEN + 1];
|
||||||
|
|
||||||
(void)time(&clock);
|
(void)time(&clocktime);
|
||||||
(void)gethostname(host, sizeof(host));
|
(void)gethostname(host, sizeof(host));
|
||||||
host[sizeof(host) - 1] = '\0';
|
host[sizeof(host) - 1] = '\0';
|
||||||
(void)printf(
|
(void)printf(
|
||||||
"#\t user: %s\n#\tmachine: %s\n#\t tree: %s\n#\t date: %s",
|
"#\t user: %s\n#\tmachine: %s\n#\t tree: %s\n#\t date: %s",
|
||||||
getlogin(), host, fullpath, ctime(&clock));
|
getlogin(), host, fullpath, ctime(&clocktime));
|
||||||
|
|
||||||
argv[0] = ".";
|
argv[0] = ".";
|
||||||
argv[1] = NULL;
|
argv[1] = NULL;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: misc.c,v 1.16 2001/10/09 04:50:01 lukem Exp $ */
|
/* $NetBSD: misc.c,v 1.17 2001/10/18 04:37:56 lukem Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1991, 1993
|
* Copyright (c) 1991, 1993
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
__RCSID("$NetBSD: misc.c,v 1.16 2001/10/09 04:50:01 lukem Exp $");
|
__RCSID("$NetBSD: misc.c,v 1.17 2001/10/18 04:37:56 lukem Exp $");
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -135,7 +135,7 @@ int
|
||||||
keycompare(const void *a, const void *b)
|
keycompare(const void *a, const void *b)
|
||||||
{
|
{
|
||||||
|
|
||||||
return (strcmp(((KEY *)a)->name, ((KEY *)b)->name));
|
return (strcmp(((const KEY *)a)->name, ((const KEY *)b)->name));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue