From 695d13e15932fee7c22cc55e6bb11ac51baa4217 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Fri, 7 Feb 2020 14:34:10 -0600 Subject: [PATCH] Always return a value from main(). Previously, there were bare "return;" statements in some places, even though main() was declared as returning int. This is disallowed by C99 and later, and ORCA/C now complains about it when using full lint checks. --- netdiskinit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/netdiskinit.c b/netdiskinit.c index 9a383fc..12fba6e 100644 --- a/netdiskinit.c +++ b/netdiskinit.c @@ -156,11 +156,10 @@ int main(void) { /* Accept requests (notifications) from Marinetti */ AcceptRequests(TCPIP_REQUEST_NAME, userid(), &tcpipRequestProc); - return; + return 0; error: setUnloadFlag(); - return; } /*