summaryrefslogtreecommitdiffstats
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
commit09902d2d4a51b134190861fbb3ddaabcae5bc1bb (patch)
treefc0f4cd737ec4d68d7011b32dfe320aa31dd3849
parentb91f9064673a8ff11a3c0ea2ac40c3f39fa2a2d7 (diff)
downloadsamba-09902d2d4a51b134190861fbb3ddaabcae5bc1bb.tar.gz
samba-09902d2d4a51b134190861fbb3ddaabcae5bc1bb.tar.xz
samba-09902d2d4a51b134190861fbb3ddaabcae5bc1bb.zip
Remove an inet_aton so that this code will compile on Solaris ...
Ahhh, the sweet smell of portability.
-rw-r--r--source/libsmb/clidgram.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/libsmb/clidgram.c b/source/libsmb/clidgram.c
index 70e97c6bb6a..e7391734eaa 100644
--- a/source/libsmb/clidgram.c
+++ b/source/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;
}