summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1995-06-14 05:19:52 +0000
committerjtc <jtc@NetBSD.org>1995-06-14 05:19:52 +0000
commit0b2dbb02ca4d0d0feca64fb2eb4ece4d4d609d31 (patch)
tree0ed119bdca175b10696fdaf91825940e92dedeb6
parent6eaa1d60d8a6133f470ce55fe2cdef1e153c1621 (diff)
add explicit return type
-rw-r--r--lib/libc/stdlib/atoi.c3
-rw-r--r--lib/libc/stdlib/setenv.c3
-rw-r--r--lib/libc/stdlib/system.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/stdlib/atoi.c b/lib/libc/stdlib/atoi.c
index 4329b2bbe37..d7462295bbf 100644
--- a/lib/libc/stdlib/atoi.c
+++ b/lib/libc/stdlib/atoi.c
@@ -33,11 +33,12 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)atoi.c 5.7 (Berkeley) 2/23/91";*/
-static char *rcsid = "$Id: atoi.c,v 1.4 1995/02/28 01:46:32 jtc Exp $";
+static char *rcsid = "$Id: atoi.c,v 1.5 1995/06/14 05:19:52 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdlib.h>
+int
atoi(str)
const char *str;
{
diff --git a/lib/libc/stdlib/setenv.c b/lib/libc/stdlib/setenv.c
index 16c40735886..c345173c179 100644
--- a/lib/libc/stdlib/setenv.c
+++ b/lib/libc/stdlib/setenv.c
@@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)setenv.c 5.6 (Berkeley) 6/4/91";*/
-static char *rcsid = "$Id: setenv.c,v 1.6 1995/02/28 01:46:53 jtc Exp $";
+static char *rcsid = "$Id: setenv.c,v 1.7 1995/06/14 05:19:57 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdlib.h>
@@ -44,6 +44,7 @@ static char *rcsid = "$Id: setenv.c,v 1.6 1995/02/28 01:46:53 jtc Exp $";
* Set the value of the environmental variable "name" to be
* "value". If rewrite is set, replace any current value.
*/
+int
setenv(name, value, rewrite)
register const char *name;
register const char *value;
diff --git a/lib/libc/stdlib/system.c b/lib/libc/stdlib/system.c
index 20d1a645b43..b953567c0b2 100644
--- a/lib/libc/stdlib/system.c
+++ b/lib/libc/stdlib/system.c
@@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)system.c 5.10 (Berkeley) 2/23/91";*/
-static char *rcsid = "$Id: system.c,v 1.9 1995/02/28 01:46:57 jtc Exp $";
+static char *rcsid = "$Id: system.c,v 1.10 1995/06/14 05:20:01 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -45,6 +45,7 @@ static char *rcsid = "$Id: system.c,v 1.9 1995/02/28 01:46:57 jtc Exp $";
extern char **environ;
+int
system(command)
const char *command;
{