Fixed SIGBUS on Sparc/NetBSD systems
This commit is contained in:
parent
5350633e1a
commit
18929b8dfa
@ -11,6 +11,7 @@ v0.91.3 11-Feb-2007
|
|||||||
|
|
||||||
mbtask:
|
mbtask:
|
||||||
Some code cleanup.
|
Some code cleanup.
|
||||||
|
Fixed s SIGBUS on Sparc/NetBSD systems.
|
||||||
|
|
||||||
mbsebbs:
|
mbsebbs:
|
||||||
Some debuglog cleanup.
|
Some debuglog cleanup.
|
||||||
|
@ -810,7 +810,7 @@ void check_servers(void)
|
|||||||
* Set default next action to 60 seconds.
|
* Set default next action to 60 seconds.
|
||||||
*/
|
*/
|
||||||
ncs_list[i].action = now + (time_t)60;
|
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");
|
se = getservbyname("fido", "udp");
|
||||||
ncs_list[i].servaddr_in.sin_family = AF_INET;
|
ncs_list[i].servaddr_in.sin_family = AF_INET;
|
||||||
ncs_list[i].servaddr_in.sin_port = se->s_port;
|
ncs_list[i].servaddr_in.sin_port = se->s_port;
|
||||||
|
Reference in New Issue
Block a user