"Tim Schwartz" tim@sanityinternet.com writes:
- if(!strcasecmp(argv[1], "start"))
- {
if(argc < 3)
{
printf("Specify service name to start.\n");
return TRUE;
}
if(!net_service(NET_START, argv[2]))
{
return TRUE;
}
return FALSE;
- }
- return FALSE;
The previous version was better here, TRUE and FALSE are not appropriate return values for main(), it's supposed to return an error code not a boolean.