mirror of
https://github.com/sheumann/NetDisk.git
synced 2024-12-30 14:30:53 +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 */
|
/* Accept requests (notifications) from Marinetti */
|
||||||
AcceptRequests(TCPIP_REQUEST_NAME, userid(), &tcpipRequestProc);
|
AcceptRequests(TCPIP_REQUEST_NAME, userid(), &tcpipRequestProc);
|
||||||
|
|
||||||
return;
|
return 0;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
setUnloadFlag();
|
setUnloadFlag();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user