Skip to content

Commit

Permalink
main.c: amends for the versioning
Browse files Browse the repository at this point in the history
Ref: #29
  • Loading branch information
Felix Wischke (65278) committed May 16, 2018
1 parent dda851d commit 25330fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ print_usage()
void
print_version()
{
printf("schaufel version: %s\n\n", _SCHAUFEL_VERSION);
exit(1);
printf("schaufel version: "
_SCHAUFEL_VERSION
"\n");
exit(0);
}

void *
Expand Down Expand Up @@ -242,7 +244,6 @@ main(int argc, char **argv)
break;
case 'V':
print_version();
break;
default:
print_usage();
}
Expand Down

0 comments on commit 25330fb

Please sign in to comment.