[Nbd] [PATCH 1/4] 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 <tuomasjjrasanen@...1261...>
---
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
Reply to: