String lengths and sizeof()s are size_t not int. Mark an unused parameter

of ReadMakefile as __unused, it's there because this function is used by
the abstracted list interface which normally deals with item handlers which
take two arguments.  Add a missing static prototype.
This commit is contained in:
Juli Mallett 2002-06-12 04:18:31 +00:00
parent 1eb93d35cb
commit d2c462cec8
3 changed files with 4 additions and 3 deletions

View File

@ -500,7 +500,7 @@ ArchStatMember (archive, member, 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;
@ -793,7 +793,7 @@ ArchFindMember (archive, member, arhPtr, mode)
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) {

View File

@ -82,6 +82,7 @@ static GNode *ENDNode;
static void CompatInterrupt(int);
static int CompatRunCommand(void *, void *);
static int CompatMake(void *, void *);
static int shellneed(char *);
static char *sh_builtin[] = {
"alias", "cd", "eval", "exec", "exit", "read", "set", "ulimit",

View File

@ -905,7 +905,7 @@ main(argc, argv)
static Boolean
ReadMakefile(p, q)
void *p;
void *q;
void *q __unused;
{
char *fname = p; /* makefile to read */
extern Lst parseIncPath;