From 4f7b2b7083e4b4e6541633a5e2ffddb7989229a0 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Thu, 25 Jan 2001 13:47:13 +0000 Subject: Remove an inet_aton so that this code will compile on Solaris ... Ahhh, the sweet smell of portability. (This used to be commit 09902d2d4a51b134190861fbb3ddaabcae5bc1bb) --- source3/libsmb/clidgram.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c index 70e97c6bb6..e7391734ea 100644 --- a/source3/libsmb/clidgram.c +++ b/source3/libsmb/clidgram.c @@ -162,7 +162,6 @@ int cli_get_response(BOOL unique, char *mailslot, char *buf, int bufsiz) bcopy(&dgram->data[92], buf, MIN(bufsiz, (dgram->datasize - 92))); - return 0; } else return -1; @@ -187,8 +186,8 @@ int cli_get_backup_list(const char *myname, const char *send_to_name) } - inet_aton("0.0.0.0", &my_ip); - + bzero(&my_ip, 4); /* Cheap way to get 0.0.0.0 in there */ + if (!resolve_name(myname, &my_ip, 0x00)) { /* FIXME: Call others here */ fprintf(stderr, "Could not resolve name: %s<00>\n", myname); @@ -219,7 +218,7 @@ int cli_get_backup_list(const char *myname, const char *send_to_name) cli_get_response(True, "\\MAILSLOT\\BROWSE", cli_backup_list, sizeof(cli_backup_list)); /* Should check the response here ... FIXME */ - return 0; + } /* @@ -235,5 +234,4 @@ int cli_get_backup_server(char *my_name, char *target, char *servername, int nam strncpy(servername, cli_backup_list, MIN(16, namesize)); - return 0; } -- cgit