This commit is contained in:
Gwenhael Le Moine 2011-07-04 10:38:03 +02:00
parent 88a5ca8e1c
commit a4130d1526

4
star.c
View file

@ -526,7 +526,7 @@ int parse_args( int argc, char* argv[], struct options *o, struct state *s )
break; break;
case '?' : case '?' :
case ':' : case ':' :
exit(0); exit( 0 );
default : break; default : break;
} }
} }
@ -555,7 +555,7 @@ int main( int argc, char* argv[] )
struct options *o = malloc( sizeof( struct options ) ); struct options *o = malloc( sizeof( struct options ) );
if ( s == NULL || o == NULL ) { 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 */ /* trick to count how many levels we have */