diff --git a/appimagetool.c b/appimagetool.c index c05a47449..387dc3e1c 100644 --- a/appimagetool.c +++ b/appimagetool.c @@ -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]; @@ -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); @@ -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]) {