diff options
author | imp <imp@FreeBSD.org> | 2002-02-02 06:36:49 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-02-02 06:36:49 +0000 |
commit | 3fc8df52e3856eeac730574d5ae122806dd1e1ef (patch) | |
tree | 331e1d7f986e20bcd52361067fc4b66cab14b048 /bin/echo/echo.c | |
parent | 5203a0a465a65bd5e6e40b6364bb0dbe05feb7cf (diff) | |
download | FreeBSD-src-3fc8df52e3856eeac730574d5ae122806dd1e1ef.zip FreeBSD-src-3fc8df52e3856eeac730574d5ae122806dd1e1ef.tar.gz |
o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.
o gc some #ifdef sun ... #endif code
Approved by: arch@, new style(9)
Diffstat (limited to 'bin/echo/echo.c')
-rw-r--r-- | bin/echo/echo.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/echo/echo.c b/bin/echo/echo.c index 71fecd4..96fe847 100644 --- a/bin/echo/echo.c +++ b/bin/echo/echo.c @@ -49,12 +49,8 @@ static const char rcsid[] = #include <stdlib.h> #include <string.h> -int main __P((int, char *[])); - int -main(argc, argv) - int argc __unused; - char *argv[]; +main(int argc __unused, char *argv[]) { int nflag; |