diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-02-19 12:47:17 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-02-19 12:47:17 -0500 |
commit | 5dee87e48d35eea8ba7022a6ba05b35ac6df167a (patch) | |
tree | ffa2b538f2cef5b9ccb7e428a2353af11f266571 /src | |
parent | 89d61fcf1283a08a10544025b0e23797593458f6 (diff) | |
download | spmc-5dee87e48d35eea8ba7022a6ba05b35ac6df167a.tar.gz |
Fix increment warning
Diffstat (limited to 'src')
-rw-r--r-- | src/internal_cmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/internal_cmd.c b/src/internal_cmd.c index 8d91029..be300d6 100644 --- a/src/internal_cmd.c +++ b/src/internal_cmd.c @@ -318,9 +318,8 @@ int check_runtime_environment_interface(void) { */ void internal_command_list(void) { printf("possible commands:\n"); - for (size_t i = 0; internal_commands[i] != NULL; i++) { // TODO: fix double increment warning (i++ becomes i+2?) + for (size_t i = 0; internal_commands[i] != NULL; i += 2) { printf(" %-20s - %-20s\n", internal_commands[i], internal_commands[i + 1]); - i++; } } |