After another look at the current changes, switch directly to the in-tree
[dragonfly.git] / usr.sbin / ntpd / patches / server.c.patch
1 $DragonFly: src/usr.sbin/ntpd/patches/Attic/server.c.patch,v 1.1 2004/11/09 20:05:42 joerg Exp $
2
3 --- server.c.orig       2004-11-09 20:34:55.000000000 +0100
4 +++ server.c    2004-11-09 20:38:09.000000000 +0100
5 @@ -51,7 +51,7 @@
6                             NULL)
7                                 fatal("setup_listeners calloc");
8  
9 -                       memcpy(&la->sa, sa, SA_LEN(sa));
10 +                       memcpy(&la->sa, sa, sa->sa_len);
11                         TAILQ_INSERT_TAIL(&conf->listen_addrs, la, entry);
12                 }
13  
14 @@ -83,7 +83,7 @@
15                         fatal("socket");
16  
17                 if (bind(la->fd, (struct sockaddr *)&la->sa,
18 -                   SA_LEN((struct sockaddr *)&la->sa)) == -1)
19 +                   ((struct sockaddr *)&la->sa)->sa_len) == -1)
20                         fatal("bind");
21         }
22