summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2001-01-25 13:47:13 +0000
committerRichard Sharpe <sharpe@samba.org>2001-01-25 13:47:13 +0000
commit4f7b2b7083e4b4e6541633a5e2ffddb7989229a0 (patch)
tree59a9cd891ed8d1ea8b8c58bc38ccc55f521df5dc /source3
parentc15a054b21a912285b628802b6e94553cb9a927d (diff)
downloadsamba-4f7b2b7083e4b4e6541633a5e2ffddb7989229a0.tar.gz
samba-4f7b2b7083e4b4e6541633a5e2ffddb7989229a0.tar.bz2
samba-4f7b2b7083e4b4e6541633a5e2ffddb7989229a0.zip
Remove an inet_aton so that this code will compile on Solaris ...
Ahhh, the sweet smell of portability. (This used to be commit 09902d2d4a51b134190861fbb3ddaabcae5bc1bb)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clidgram.c8
1 files changed, 3 insertions, 5 deletions
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;
}