Fixed SIGBUS on Sparc/NetBSD systems

This commit is contained in:
Michiel Broek 2007-02-11 20:29:52 +00:00
parent 5350633e1a
commit 18929b8dfa
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ v0.91.3 11-Feb-2007
mbtask:
Some code cleanup.
Fixed s SIGBUS on Sparc/NetBSD systems.
mbsebbs:
Some debuglog cleanup.

View File

@ -810,7 +810,7 @@ void check_servers(void)
* Set default next action to 60 seconds.
*/
ncs_list[i].action = now + (time_t)60;
memset(&ncs_list[i].servaddr_in, 0, sizeof(struct sockaddr_in));
// Gives SIGBUS on Sparc memset(&ncs_list[i].servaddr_in, 0, sizeof(struct sockaddr_in));
se = getservbyname("fido", "udp");
ncs_list[i].servaddr_in.sin_family = AF_INET;
ncs_list[i].servaddr_in.sin_port = se->s_port;