summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-10-26 16:02:16 -0700
committerJeremy Allison <jra@samba.org>2007-10-26 16:02:16 -0700
commit7cbfaa31d86864dbae3a473241850a0c289013a3 (patch)
tree0dc8074ec718f1e8c5866a46183016a61e4ebb6d /source3
parentcd648750e03ca733337a2ac9a876727f152fd433 (diff)
downloadsamba-7cbfaa31d86864dbae3a473241850a0c289013a3.tar.gz
samba-7cbfaa31d86864dbae3a473241850a0c289013a3.tar.bz2
samba-7cbfaa31d86864dbae3a473241850a0c289013a3.zip
Fix a few more sockaddr -> sockaddr_storgage.
Jeremy. (This used to be commit 4b3635d6bc1bd5e4135ef208dff052e1d9b58a12)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbfilter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/smbfilter.c b/source3/utils/smbfilter.c
index c6f05150f3..706b24a577 100644
--- a/source3/utils/smbfilter.c
+++ b/source3/utils/smbfilter.c
@@ -199,15 +199,15 @@ static void start_filter(char *desthost)
while (1) {
fd_set fds;
int num;
- struct sockaddr addr;
- socklen_t in_addrlen = sizeof(addr);
+ struct sockaddr_storage ss;
+ socklen_t in_addrlen = sizeof(ss);
FD_ZERO(&fds);
FD_SET(s, &fds);
num = sys_select_intr(s+1,&fds,NULL,NULL,NULL);
if (num > 0) {
- c = accept(s, &addr, &in_addrlen);
+ c = accept(s, (struct sockaddr *)&ss, &in_addrlen);
if (c != -1) {
if (fork() == 0) {
close(s);