serveloop() never returns, now it is also marked as such.

Signed-off-by: Tuomas Jorma Juhani Räsänen <[email protected]>
---
 nbd-server.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 ;
 }
-- 
1.7.10.4


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Nbd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nbd-general

Reply via email to