From: Tuomas Jorma Juhani Räsänen Date: Thu, 3 Jan 2013 21:20:34 +0000 (+0200) Subject: nbd-server: remove return statement after call to serveloop() X-Git-Tag: nbd-3.3~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=340e5d183c5108f61480b9fa8bf0b675f2839ae3;p=platform%2Fupstream%2Fnbd.git nbd-server: remove return statement after call to serveloop() serveloop() never returns, now it is also marked as such. Signed-off-by: Tuomas Jorma Juhani Räsänen --- diff --git a/nbd-server.c b/nbd-server.c index 019f578..bbe4ddb 100644 --- a/nbd-server.c +++ b/nbd-server.c @@ -2258,7 +2258,7 @@ handle_connection_out: /** * 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; @@ -2322,6 +2322,7 @@ int serveloop(GArray* servers) { } } } +void serveloop(GArray* servers) G_GNUC_NORETURN; /** * Set server socket options. @@ -2708,5 +2709,4 @@ int main(int argc, char *argv[]) { setup_servers(servers); dousers(); serveloop(servers); - return 0 ; }