diff options
Diffstat (limited to 'src/fbuilder/build_profile.c')
-rw-r--r-- | src/fbuilder/build_profile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fbuilder/build_profile.c b/src/fbuilder/build_profile.c index 0f71fe7ad..fbe48cd4b 100644 --- a/src/fbuilder/build_profile.c +++ b/src/fbuilder/build_profile.c | |||
@@ -72,14 +72,14 @@ void build_profile(int argc, char **argv, int index) { | |||
72 | have_strace = 1; | 72 | have_strace = 1; |
73 | 73 | ||
74 | // calculate command length | 74 | // calculate command length |
75 | int len = (int) sizeof(cmdlist) / sizeof(char*) + argc - index + 1; | 75 | unsigned len = (int) sizeof(cmdlist) / sizeof(char*) + argc - index + 1; |
76 | if (arg_debug) | 76 | if (arg_debug) |
77 | printf("command len %d + %d + 1\n", (int) (sizeof(cmdlist) / sizeof(char*)), argc - index); | 77 | printf("command len %d + %d + 1\n", (int) (sizeof(cmdlist) / sizeof(char*)), argc - index); |
78 | char *cmd[len]; | 78 | char *cmd[len]; |
79 | cmd[0] = cmdlist[0]; // explicit assignemnt to clean scan-build error | 79 | cmd[0] = cmdlist[0]; // explicit assignemnt to clean scan-build error |
80 | 80 | ||
81 | // build command | 81 | // build command |
82 | int i = 0; | 82 | unsigned i = 0; |
83 | for (i = 0; i < (int) sizeof(cmdlist) / sizeof(char*); i++) { | 83 | for (i = 0; i < (int) sizeof(cmdlist) / sizeof(char*); i++) { |
84 | // skip strace if not installed | 84 | // skip strace if not installed |
85 | if (have_strace == 0 && strcmp(cmdlist[i], "/usr/bin/strace") == 0) | 85 | if (have_strace == 0 && strcmp(cmdlist[i], "/usr/bin/strace") == 0) |