mirror of
https://github.com/sheumann/NetDisk.git
synced 2024-11-27 19:49:38 +00:00
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.
This commit is contained in:
parent
284bc29594
commit
695d13e159
@ -156,11 +156,10 @@ int main(void) {
|
||||
/* Accept requests (notifications) from Marinetti */
|
||||
AcceptRequests(TCPIP_REQUEST_NAME, userid(), &tcpipRequestProc);
|
||||
|
||||
return;
|
||||
return 0;
|
||||
|
||||
error:
|
||||
setUnloadFlag();
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user