Tidied termination a little

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16703 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-05-12 19:58:20 +00:00
parent c76aa02acd
commit a5bfb0ec52
3 changed files with 15 additions and 15 deletions

View file

@ -182,5 +182,5 @@ main(int argc, char** argv, char **env_c)
}
}
[pool release];
exit(0);
exit(EXIT_SUCCESS);
}

View file

@ -88,7 +88,7 @@ main(int argc, char** argv, char **env_c)
{
NSLog(@"unable to get process information!\n");
[pool release];
exit(0);
exit(EXIT_SUCCESS);
}
[NSSerializer shouldBeCompact: YES];
@ -120,7 +120,7 @@ main(int argc, char** argv, char **env_c)
"in 'filename' contains a valid services definition.\n"
"You may use 'make_services --verbose' to produce descriptive output.\n",
[cacheName cString]);
exit(0);
exit(EXIT_SUCCESS);
}
if ([[args objectAtIndex: index] isEqual: @"--test"])
{
@ -149,7 +149,7 @@ main(int argc, char** argv, char **env_c)
NSLog(@"bad info - %@\n", file);
}
}
exit(0);
exit(EXIT_SUCCESS);
}
}
@ -198,7 +198,7 @@ main(int argc, char** argv, char **env_c)
{
NSLog(@"couldn't create %@\n", usrRoot);
[pool release];
exit(1);
exit(EXIT_FAILURE);
}
}
@ -211,7 +211,7 @@ main(int argc, char** argv, char **env_c)
{
NSLog(@"couldn't create %@\n", usrRoot);
[pool release];
exit(1);
exit(EXIT_FAILURE);
}
}
@ -308,7 +308,7 @@ main(int argc, char** argv, char **env_c)
{
NSLog(@"couldn't write %@\n", str);
[pool release];
exit(1);
exit(EXIT_FAILURE);
}
}
@ -331,12 +331,12 @@ main(int argc, char** argv, char **env_c)
{
NSLog(@"couldn't write %@\n", str);
[pool release];
exit(1);
exit(EXIT_FAILURE);
}
}
[pool release];
exit(0);
exit(EXIT_SUCCESS);
}
/*

View file

@ -49,7 +49,7 @@ main(int argc, char** argv, char **env)
{
NSLog(@"unable to get process information!\n");
[pool release];
exit(0);
exit(EXIT_SUCCESS);
}
args = [proc arguments];
@ -62,27 +62,27 @@ main(int argc, char** argv, char **env)
"set_show_service enables or disables the display of a specified service\n"
"item. It's should be in the form 'set_show_services --enable name' or \n"
"'set_show_service --disable name' where 'name' is a service name.\n");
exit(0);
exit(EXIT_SUCCESS);
}
if ([[args objectAtIndex: index] isEqual: @"--enable"])
{
if (index >= [args count] - 1)
{
NSLog(@"No name specified for enable.\n");
exit(1);
exit(EXIT_FAILURE);
}
NSSetShowsServicesMenuItem([args objectAtIndex: ++index], YES);
exit(0);
exit(EXIT_SUCCESS);
}
if ([[args objectAtIndex: index] isEqual: @"--disable"])
{
if (index >= [args count] - 1)
{
NSLog(@"No name specified for disable.\n");
exit(1);
exit(EXIT_FAILURE);
}
NSSetShowsServicesMenuItem([args objectAtIndex: ++index], NO);
exit(0);
exit(EXIT_SUCCESS);
}
}