Fix warnings inspired by lint, a commercial lint and WARNS=4.

This commit is contained in:
Mark Murray 2002-02-22 21:00:16 +00:00
parent 39661e26a5
commit 9b2010a2de
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91082

View File

@ -49,6 +49,7 @@ static const char rcsid[] =
#include <stdlib.h>
#include <string.h>
/* ARGSUSED */
int
main(int argc __unused, char *argv[])
{
@ -63,7 +64,7 @@ main(int argc __unused, char *argv[])
nflag = 0;
while (argv[0]) {
int len = strlen(argv[0]);
size_t len = strlen(argv[0]);
if (len >= 2 && !argv[1] && argv[0][len - 2] == '\\' && argv[0][len - 1] == 'c') {
argv[0][len - 2] = '\0';
@ -75,5 +76,5 @@ main(int argc __unused, char *argv[])
}
if (!nflag)
putchar('\n');
exit(0);
return 0;
}