summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/getnetpath.c
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2015-09-22 15:40:07 +0000
committerrodrigc <rodrigc@FreeBSD.org>2015-09-22 15:40:07 +0000
commit5200f4be667a336fb2b90bdad8b6dab5d0979aa6 (patch)
tree2e8901f302dad25f0bd647f68a1d6c9423986c96 /lib/libc/rpc/getnetpath.c
parent3fa0d9942f4943ada80c76279fcfd99262c878c6 (diff)
downloadFreeBSD-src-5200f4be667a336fb2b90bdad8b6dab5d0979aa6.zip
FreeBSD-src-5200f4be667a336fb2b90bdad8b6dab5d0979aa6.tar.gz
Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Diffstat (limited to 'lib/libc/rpc/getnetpath.c')
-rw-r--r--lib/libc/rpc/getnetpath.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/libc/rpc/getnetpath.c b/lib/libc/rpc/getnetpath.c
index 29155c7..ce2984b 100644
--- a/lib/libc/rpc/getnetpath.c
+++ b/lib/libc/rpc/getnetpath.c
@@ -82,7 +82,7 @@ char *_get_next_token(char *, int);
*/
void *
-setnetpath()
+setnetpath(void)
{
struct netpath_vars *np_sessionp; /* this session's variables */
@@ -141,8 +141,7 @@ failed:
*/
struct netconfig *
-getnetpath(handlep)
- void *handlep;
+getnetpath(void *handlep)
{
struct netpath_vars *np_sessionp = (struct netpath_vars *)handlep;
struct netconfig *ncp = NULL; /* temp. holds a netconfig session */
@@ -197,8 +196,7 @@ getnetpath(handlep)
* (e.g. if setnetpath() was not called previously.
*/
int
-endnetpath(handlep)
- void *handlep;
+endnetpath(void *handlep)
{
struct netpath_vars *np_sessionp = (struct netpath_vars *)handlep;
struct netpath_chain *chainp, *lastp;
@@ -231,12 +229,12 @@ endnetpath(handlep)
* Returns pointer to the rest-of-the-string after the current token.
* The token itself starts at arg, and we null terminate it. We return NULL
* if either the arg is empty, or if this is the last token.
+ *
+ * npp - string
+ * token - char to parse string for
*/
-
char *
-_get_next_token(npp, token)
-char *npp; /* string */
-int token; /* char to parse string for */
+_get_next_token(char *npp, int token)
{
char *cp; /* char pointer */
char *np; /* netpath pointer */
OpenPOWER on IntegriCloud