summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2001-05-17 02:44:10 +0000
committerRichard Sharpe <sharpe@samba.org>2001-05-17 02:44:10 +0000
commit2378ba1c214e8c377516fd9d5dd10afec6493be3 (patch)
treeaf369bb8195fc6df43934438174a0a5969947c7d /source3
parent49177b07c831bd463752e6489c29e9dc0e680301 (diff)
downloadsamba-2378ba1c214e8c377516fd9d5dd10afec6493be3.tar.gz
samba-2378ba1c214e8c377516fd9d5dd10afec6493be3.tar.bz2
samba-2378ba1c214e8c377516fd9d5dd10afec6493be3.zip
Further recasts to sockaddr * rather than sockaddr_in *
(This used to be commit b0ba25e22d101acbe4079bc81759a4e0c8a7e6d8)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clidgram.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c
index 3eaf2bf48a..1ac2439b08 100644
--- a/source3/libsmb/clidgram.c
+++ b/source3/libsmb/clidgram.c
@@ -188,13 +188,13 @@ int cli_get_backup_list(const char *myname, const char *send_to_name)
sock_out.sin_port = htons(138);
sock_out.sin_family = AF_INET;
- if (bind(dgram_sock, (struct sockaddr_in *)&sock_out, sizeof(sock_out)) < 0) {
+ if (bind(dgram_sock, (struct sockaddr *)&sock_out, sizeof(sock_out)) < 0) {
/* Try again on any port ... */
sock_out.sin_port = INADDR_ANY;
- if (bind(dgram_sock, (struct sockaddr_in *)&sock_out, sizeof(sock_out)) < 0) {
+ if (bind(dgram_sock, (struct sockaddr *)&sock_out, sizeof(sock_out)) < 0) {
DEBUG(4, ("failed to bind socket to address ...\n"));
return False;
@@ -207,7 +207,7 @@ int cli_get_backup_list(const char *myname, const char *send_to_name)
name_size = sizeof(sock_out);
- getsockname(dgram_sock, (struct sockaddr_in *)&sock_out, &name_size);
+ getsockname(dgram_sock, (struct sockaddr *)&sock_out, &name_size);
DEBUG(5, ("Socket bound to IP:%s, port: %d\n", inet_ntoa(sock_out.sin_addr), ntohs(sock_out.sin_port)));