Fixed gcc warnings about signed vs. unsigned in comparisons.
This commit is contained in:
parent
a3ea8b9d59
commit
9edce8b593
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: arch.c,v 1.50 2006/04/22 18:38:38 christos Exp $ */
|
||||
/* $NetBSD: arch.c,v 1.51 2006/06/29 22:02:06 rillig Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990, 1993
|
||||
|
@ -69,14 +69,14 @@
|
|||
*/
|
||||
|
||||
#ifndef MAKE_NATIVE
|
||||
static char rcsid[] = "$NetBSD: arch.c,v 1.50 2006/04/22 18:38:38 christos Exp $";
|
||||
static char rcsid[] = "$NetBSD: arch.c,v 1.51 2006/06/29 22:02:06 rillig Exp $";
|
||||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)arch.c 8.2 (Berkeley) 1/2/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: arch.c,v 1.50 2006/04/22 18:38:38 christos Exp $");
|
||||
__RCSID("$NetBSD: arch.c,v 1.51 2006/06/29 22:02:06 rillig Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
#endif
|
||||
|
@ -558,7 +558,7 @@ ArchStatMember(char *archive, char *member, Boolean hash)
|
|||
} else {
|
||||
/* Try truncated name */
|
||||
char copy[AR_MAX_NAME_LEN+1];
|
||||
int len = strlen(member);
|
||||
size_t len = strlen(member);
|
||||
|
||||
if (len > AR_MAX_NAME_LEN) {
|
||||
len = AR_MAX_NAME_LEN;
|
||||
|
@ -851,7 +851,7 @@ ArchFindMember(char *archive, char *member, struct ar_hdr *arhPtr,
|
|||
int size; /* Size of archive member */
|
||||
char *cp; /* Useful character pointer */
|
||||
char magic[SARMAG];
|
||||
int len, tlen;
|
||||
size_t len, tlen;
|
||||
|
||||
arch = fopen(archive, mode);
|
||||
if (arch == NULL) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: main.c,v 1.126 2006/05/19 17:21:46 christos Exp $ */
|
||||
/* $NetBSD: main.c,v 1.127 2006/06/29 22:02:06 rillig Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990, 1993
|
||||
|
@ -69,7 +69,7 @@
|
|||
*/
|
||||
|
||||
#ifndef MAKE_NATIVE
|
||||
static char rcsid[] = "$NetBSD: main.c,v 1.126 2006/05/19 17:21:46 christos Exp $";
|
||||
static char rcsid[] = "$NetBSD: main.c,v 1.127 2006/06/29 22:02:06 rillig Exp $";
|
||||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
|
@ -81,7 +81,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: main.c,v 1.126 2006/05/19 17:21:46 christos Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.127 2006/06/29 22:02:06 rillig Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
#endif
|
||||
|
@ -1220,7 +1220,7 @@ Check_Cwd_av(int ac, char **av, int copy)
|
|||
|
||||
n = strlen(av[i]);
|
||||
cp = &(av[i])[n - 1];
|
||||
if (strspn(av[i], "|&;") == n) {
|
||||
if (strspn(av[i], "|&;") == (size_t)n) {
|
||||
next_cmd = 1;
|
||||
continue;
|
||||
} else if (*cp == ';' || *cp == '&' || *cp == '|' || *cp == ')') {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: suff.c,v 1.53 2006/03/31 21:58:08 christos Exp $ */
|
||||
/* $NetBSD: suff.c,v 1.54 2006/06/29 22:02:06 rillig Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990, 1993
|
||||
|
@ -69,14 +69,14 @@
|
|||
*/
|
||||
|
||||
#ifndef MAKE_NATIVE
|
||||
static char rcsid[] = "$NetBSD: suff.c,v 1.53 2006/03/31 21:58:08 christos Exp $";
|
||||
static char rcsid[] = "$NetBSD: suff.c,v 1.54 2006/06/29 22:02:06 rillig Exp $";
|
||||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)suff.c 8.4 (Berkeley) 3/21/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: suff.c,v 1.53 2006/03/31 21:58:08 christos Exp $");
|
||||
__RCSID("$NetBSD: suff.c,v 1.54 2006/06/29 22:02:06 rillig Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
#endif
|
||||
|
@ -908,7 +908,7 @@ SuffScanTargets(ClientData targetp, ClientData gsp)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (target->type == OP_TRANSFORM)
|
||||
if ((unsigned int)target->type == OP_TRANSFORM)
|
||||
return 0;
|
||||
|
||||
if ((ptr = strstr(target->name, gs->s->name)) == NULL ||
|
||||
|
|
Loading…
Reference in New Issue