Skip to content

Commit

Permalink
Small oops in version.c (used at build-time only)
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed May 24, 2024
1 parent e57635d commit 4ed2ae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

#include "novas.h"

int main(int argc, char *argv[]) {
int main(int argc, const char *argv[]) {
if (argc > 1) {
const char *arg = argv[1];
if (strcmp("major", arg) == 0) printf("%d\n", SUPERNOVAS_MAJOR_VERSION);
else if (strcmp("minor", arg) == 0) printf("%d\n", SUPERNOVAS_MINOR_VERSION);
else if (strcmp("patch", arg) == 0) printf("%d\n", SUPERNOVAS_PATCHLEVEL);
else if (strcmp("release", arg) == 0) printf("%d\n", SUPERNOVAS_RELEASE_STRING);
else if (strcmp("release", arg) == 0) printf("%s\n", SUPERNOVAS_RELEASE_STRING);
else return 1;
return 0;
}
Expand Down

0 comments on commit 4ed2ae6

Please sign in to comment.