tpublish p9dialparse - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit e42882dc96325652ff553838e560e6901b5d7977
 (DIR) parent 0c148046ed2d597f9eca97e03c8a0592016c8c10
 (HTM) Author: rsc <devnull@localhost>
       Date:   Wed, 16 Jun 2004 16:45:09 +0000
       
       publish p9dialparse
       
       Diffstat:
         M src/lib9/_p9dialparse.c             |       2 +-
         M src/lib9/announce.c                 |       3 +--
         M src/lib9/dial.c                     |       4 +---
       
       3 files changed, 3 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/src/lib9/_p9dialparse.c b/src/lib9/_p9dialparse.c
       t@@ -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;
 (DIR) diff --git a/src/lib9/announce.c b/src/lib9/announce.c
       t@@ -10,7 +10,6 @@
        
        #undef sun
        #define sun sockun
       -extern int _p9dialparse(char*, char**, char**, u32int*, int*);
        
        int
        _p9netfd(char *dir)
       t@@ -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;
                }
 (DIR) diff --git a/src/lib9/dial.c b/src/lib9/dial.c
       t@@ -16,8 +16,6 @@
        #include <sys/un.h>
        #include <netdb.h>
        
       -
       -extern int _p9dialparse(char*, char**, char**, u32int*, int*);
        #undef unix
        
        int
       t@@ -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;
                }