Browse Source

Silence -Wsign-compare warnings

develop
Damien Goutte-Gattat 4 years ago
parent
commit
236bdf1d3c
  1. 6
      src/gfsec-split.c

6
src/gfsec-split.c

@ -143,7 +143,7 @@ prompt_for_share(gfsec_secret_t *cfg, gfsec_supports_list_t *list, unsigned numb
rc = -1;
printf("Select a support for share #%u:\n\n", number);
for ( i = 0; i < list->count; i++ )
for ( i = 0; (unsigned)i < list->count; i++ )
printf(" (%d) %s\n", i+1, list->supports[i].description);
printf(" (x) Done\n\n");
@ -156,7 +156,7 @@ prompt_for_share(gfsec_secret_t *cfg, gfsec_supports_list_t *list, unsigned numb
int selected;
selected = strtol(answer, NULL, 10);
if ( selected > 0 && selected < list->count ) {
if ( selected > 0 && (unsigned)selected < list->count ) {
path = ask_nonempty("Specify a pathname on this support:");
share = gfsec_share_new();
@ -311,7 +311,7 @@ main(int argc, char **argv)
if ( list_mode ) {
gfsec_supports_list_t *list;
char *schemes[] = { "file", "uuid", "label", "mtp" };
int i;
unsigned i;
list = gfsec_scheme_module_get_supports();

Loading…
Cancel
Save