summaryrefslogtreecommitdiffstats
path: root/contrib/global/lib/strop.c
diff options
context:
space:
mode:
authorcwt <cwt@FreeBSD.org>1997-12-15 23:23:35 +0000
committercwt <cwt@FreeBSD.org>1997-12-15 23:23:35 +0000
commit7cb55de6f5fe34cf96591b368ea2596664c34a99 (patch)
tree6c996d5a5ed8fb0c736ab166bbf0422f729a3acc /contrib/global/lib/strop.c
parent4fda3be4508d5e4d5cebf2deac98f970dba97f16 (diff)
downloadFreeBSD-src-7cb55de6f5fe34cf96591b368ea2596664c34a99.zip
FreeBSD-src-7cb55de6f5fe34cf96591b368ea2596664c34a99.tar.gz
Resolve -Wall issues and be stylistic about #include directives.
Diffstat (limited to 'contrib/global/lib/strop.c')
-rw-r--r--contrib/global/lib/strop.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/global/lib/strop.c b/contrib/global/lib/strop.c
index e15db16..b024abc 100644
--- a/contrib/global/lib/strop.c
+++ b/contrib/global/lib/strop.c
@@ -31,8 +31,12 @@
* strop.c 20-Oct-97
*
*/
-#include "strop.h"
+#include <stdlib.h>
+#include <string.h>
+
#include "die.h"
+#include "strop.h"
+
/*
* usage: string buffer
*
@@ -49,7 +53,7 @@ static int sbufsize;
static int opened;
void
-stropen()
+stropen(void)
{
if (opened)
die("nested call to stropen.");
@@ -107,7 +111,7 @@ int c;
*curp = 0;
}
char *
-strclose()
+strclose(void)
{
opened = 0;
/*
OpenPOWER on IntegriCloud