diff --git a/src/lib9/_p9dialparse.c b/src/lib9/_p9dialparse.c index 45027513..33088925 100644 --- a/src/lib9/_p9dialparse.c +++ b/src/lib9/_p9dialparse.c @@ -55,7 +55,7 @@ parseip(char *host, u32int *pip) } int -_p9dialparse(char *addr, char **pnet, char **punix, u32int *phost, int *pport) +p9dialparse(char *addr, char **pnet, char **punix, u32int *phost, int *pport) { char *net, *host, *port, *e; int i; diff --git a/src/lib9/announce.c b/src/lib9/announce.c index f125b712..2fd9b5b1 100644 --- a/src/lib9/announce.c +++ b/src/lib9/announce.c @@ -10,7 +10,6 @@ #undef sun #define sun sockun -extern int _p9dialparse(char*, char**, char**, u32int*, int*); int _p9netfd(char *dir) @@ -50,7 +49,7 @@ p9announce(char *addr, char *dir) if(buf == nil) return -1; - if(_p9dialparse(buf, &net, &unix, &host, &port) < 0){ + if(p9dialparse(buf, &net, &unix, &host, &port) < 0){ free(buf); return -1; } diff --git a/src/lib9/dial.c b/src/lib9/dial.c index 99d37990..732cbb69 100644 --- a/src/lib9/dial.c +++ b/src/lib9/dial.c @@ -16,8 +16,6 @@ #include #include - -extern int _p9dialparse(char*, char**, char**, u32int*, int*); #undef unix int @@ -41,7 +39,7 @@ p9dial(char *addr, char *dummy1, char *dummy2, int *dummy3) if(buf == nil) return -1; - if(_p9dialparse(buf, &net, &unix, &host, &port) < 0){ + if(p9dialparse(buf, &net, &unix, &host, &port) < 0){ free(buf); return -1; }