Skip to content

Commit

Permalink
make struct safer
Browse files Browse the repository at this point in the history
  • Loading branch information
teras committed Sep 3, 2017
1 parent 199633e commit 46672f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions appimagetool.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,12 @@ static void replacestr(char *line, const char *search, const char *replace)
}
}

typedef struct ARCH {
char i386 : 1;
char x86_64 : 1;
typedef struct ARCHs {
char i386;
char x86_64;
} ARCH;

void guess_arch(const gchar *archfile, struct ARCH* arch) {
void guess_arch(const gchar *archfile, ARCH* arch) {
gchar *found_arch;
char line[PATH_MAX];
char command[PATH_MAX];
Expand Down

0 comments on commit 46672f1

Please sign in to comment.