diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-06-12 04:18:31 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-06-12 04:18:31 +0000 |
commit | c3b688425de3f0901fdcd17e0e68fa4e90ef717f (patch) | |
tree | c452007eb644c7e9f354e1da6956cfdaeb504748 | |
parent | 20c0a6cdd5424c6bd478012b6a5af279b61c36d5 (diff) | |
download | FreeBSD-src-c3b688425de3f0901fdcd17e0e68fa4e90ef717f.zip FreeBSD-src-c3b688425de3f0901fdcd17e0e68fa4e90ef717f.tar.gz |
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.
-rw-r--r-- | usr.bin/make/arch.c | 4 | ||||
-rw-r--r-- | usr.bin/make/compat.c | 1 | ||||
-rw-r--r-- | usr.bin/make/main.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/make/arch.c b/usr.bin/make/arch.c index 6e7b07e..f925d79 100644 --- a/usr.bin/make/arch.c +++ b/usr.bin/make/arch.c @@ -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) { diff --git a/usr.bin/make/compat.c b/usr.bin/make/compat.c index f0d08aa..cf2e309 100644 --- a/usr.bin/make/compat.c +++ b/usr.bin/make/compat.c @@ -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", diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index e8d3d6c..0cd02bc 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -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; |