serveloop() never returns, now it is also marked as such.
Signed-off-by: Tuomas Jorma Juhani Räsänen <tuomasjjrasanen@tjjr.fi>
/**
* Loop through the available servers, and serve them. Never returns.
**/
-int serveloop(GArray* servers) {
+void serveloop(GArray* servers) {
struct sockaddr_storage addrin;
socklen_t addrinlen=sizeof(addrin);
int i;
}
}
}
+void serveloop(GArray* servers) G_GNUC_NORETURN;
/**
* Set server socket options.
setup_servers(servers);
dousers();
serveloop(servers);
- return 0 ;
}