diff options
author | Wim Taymans <wtaymans@redhat.com> | 2019-01-07 15:52:42 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2019-01-07 15:52:42 +0100 |
commit | e918f9f77c718e0a1d48623cca2b93a3653ee332 (patch) | |
tree | 798616ba6eee4069b8301a5063717e807b210711 /src/tools | |
parent | 74e5f9fbcf3c69c61ba1669f00de1c0a86090b80 (diff) |
fix sign confusion
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/pipewire-cli.c | 5 | ||||
-rw-r--r-- | src/tools/pipewire-monitor.c | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/tools/pipewire-cli.c b/src/tools/pipewire-cli.c index 1fd53c57..ac3a6fb0 100644 --- a/src/tools/pipewire-cli.c +++ b/src/tools/pipewire-cli.c @@ -206,7 +206,7 @@ static struct command command_list[] = { static bool do_help(struct data *data, const char *cmd, char *args, char **error) { - int i; + size_t i; fprintf(stdout, "Available commands:\n"); for (i = 0; i < SPA_N_ELEMENTS(command_list); i++) { @@ -1245,7 +1245,8 @@ static bool do_permissions(struct data *data, const char *cmd, char *args, char static bool parse(struct data *data, char *buf, size_t size, char **error) { char *a[2]; - int i, n; + int n; + size_t i; char *p, *cmd, *args; if ((p = strchr(buf, '#'))) diff --git a/src/tools/pipewire-monitor.c b/src/tools/pipewire-monitor.c index 03c50b41..9d75f817 100644 --- a/src/tools/pipewire-monitor.c +++ b/src/tools/pipewire-monitor.c @@ -105,7 +105,7 @@ static void on_sync_reply(void *data, uint32_t seq) static void clear_params(struct proxy_data *data) { - int i; + uint32_t i; for (i = 0; i < data->n_params; i++) free(data->params[i]); @@ -219,7 +219,7 @@ static void print_node(struct proxy_data *data) printf("\ttype: %s (version %d)\n", spa_debug_type_find_name(pw_type_info(), data->type), data->version); if (print_all) { - int i; + uint32_t i; printf("%c\tname: \"%s\"\n", MARK_CHANGE(0), info->name); printf("%c\tparams:\n", MARK_CHANGE(5)); @@ -297,7 +297,7 @@ static void print_port(struct proxy_data *data) printf("\ttype: %s (version %d)\n", spa_debug_type_find_name(pw_type_info(), data->type), data->version); if (print_all) { - int i; + uint32_t i; printf(" \tdirection: \"%s\"\n", pw_direction_as_string(info->direction)); printf("%c\tparams:\n", MARK_CHANGE(2)); for (i = 0; i < data->n_params; i++) { |