diff --git a/bin/echo/echo.c b/bin/echo/echo.c index 96fe84777eed..2e294c8eb062 100644 --- a/bin/echo/echo.c +++ b/bin/echo/echo.c @@ -49,6 +49,7 @@ static const char rcsid[] = #include #include +/* 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; }