Skip to content

Commit

Permalink
changed char into bool
Browse files Browse the repository at this point in the history
  • Loading branch information
teras committed Sep 4, 2017
1 parent 2619d67 commit f68f1f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions appimagetool.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ static void replacestr(char *line, const char *search, const char *replace)
}
}

void guess_arch(const gchar *archfile, char* archs) {
void guess_arch(const gchar *archfile, bool* archs) {
gchar *carch;
char line[PATH_MAX];
char command[PATH_MAX];
Expand Down Expand Up @@ -299,7 +299,7 @@ void guess_arch(const gchar *archfile, char* archs) {
}
}

void find_arch(const gchar *real_path, const gchar *pattern, char* archs) {
void find_arch(const gchar *real_path, const gchar *pattern, bool* archs) {
GDir *dir;
gchar *full_name;
dir = g_dir_open(real_path, 0, NULL);
Expand Down Expand Up @@ -497,7 +497,7 @@ main (int argc, char *argv[])
/* If no $ARCH variable is set check a file */
if (!arch) {
/* We use the next best .so that we can find to determine the architecture */
char archs[4];
bool archs[4];
find_arch(source, "*.so.*", archs);
int countArchs = 0;
if (archs[fARCH_i386]) {
Expand Down

0 comments on commit f68f1f5

Please sign in to comment.