Skip to content

Commit

Permalink
beeversion: remove unneeded suffix code
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Aug 16, 2011
1 parent c349a75 commit 8d1fa5f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/beeversion/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,9 @@ int parse_version(char *string, struct beeversion *v)
exit(1);
}

if(!strcmp(p, "bee")) {
/* ignore .bee suffix */
*(p-1) = 0;
} else {
if(!strcmp(p, unm.machine)) {
v->arch = p;
*(p-1) = 0;
}
if(!strcmp(p, unm.machine)) {
v->arch = p;
*(p-1) = 0;
}

for(a=arch; *(p-1) && *a; a++) {
Expand Down

0 comments on commit 8d1fa5f

Please sign in to comment.