mirror of
https://github.com/gwenhael-le-moine/c-urs_-toil-s.git
synced 2024-12-26 09:58:48 +01:00
use exit
This commit is contained in:
parent
88a5ca8e1c
commit
a4130d1526
1 changed files with 2 additions and 2 deletions
4
star.c
4
star.c
|
@ -526,7 +526,7 @@ int parse_args( int argc, char* argv[], struct options *o, struct state *s )
|
|||
break;
|
||||
case '?' :
|
||||
case ':' :
|
||||
exit(0);
|
||||
exit( 0 );
|
||||
default : break;
|
||||
}
|
||||
}
|
||||
|
@ -555,7 +555,7 @@ int main( int argc, char* argv[] )
|
|||
struct options *o = malloc( sizeof( struct options ) );
|
||||
|
||||
if ( s == NULL || o == NULL ) {
|
||||
return 1; /* Guys, we're out of memory */
|
||||
exit( 1 ); /* Guys, we're out of memory */
|
||||
}
|
||||
|
||||
/* trick to count how many levels we have */
|
||||
|
|
Loading…
Reference in a new issue