diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/domainname/Makefile | 2 | ||||
-rw-r--r-- | bin/domainname/domainname.c | 5 | ||||
-rw-r--r-- | bin/echo/Makefile | 2 | ||||
-rw-r--r-- | bin/echo/echo.c | 4 |
4 files changed, 10 insertions, 3 deletions
diff --git a/bin/domainname/Makefile b/bin/domainname/Makefile index 724bd06f6a39..2c7669cfeca6 100644 --- a/bin/domainname/Makefile +++ b/bin/domainname/Makefile @@ -2,4 +2,6 @@ PROG= domainname +WARNS= 2 + .include <bsd.prog.mk> diff --git a/bin/domainname/domainname.c b/bin/domainname/domainname.c index d0c989c39fdd..32a86cab6883 100644 --- a/bin/domainname/domainname.c +++ b/bin/domainname/domainname.c @@ -53,6 +53,7 @@ static const char rcsid[] = #include <string.h> #include <unistd.h> +int main __P((int, char *[])); void usage __P((void)); int @@ -75,10 +76,10 @@ main(argc,argv) usage(); if (*argv) { - if (setdomainname(*argv, strlen(*argv))) + if (setdomainname(*argv, (int)strlen(*argv))) err(1, "setdomainname"); } else { - if (getdomainname(domainname, sizeof(domainname))) + if (getdomainname(domainname, (int)sizeof(domainname))) err(1, "getdomainname"); (void)printf("%s\n", domainname); } diff --git a/bin/echo/Makefile b/bin/echo/Makefile index d00d4679d7ac..b62bd423041c 100644 --- a/bin/echo/Makefile +++ b/bin/echo/Makefile @@ -3,4 +3,6 @@ PROG= echo +WARNS= 2 + .include <bsd.prog.mk> diff --git a/bin/echo/echo.c b/bin/echo/echo.c index edab483ddbbc..71fecd4ca7da 100644 --- a/bin/echo/echo.c +++ b/bin/echo/echo.c @@ -49,9 +49,11 @@ static const char rcsid[] = #include <stdlib.h> #include <string.h> +int main __P((int, char *[])); + int main(argc, argv) - int argc; + int argc __unused; char *argv[]; { int nflag; |