diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-25 16:31:18 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-25 16:31:18 +0800 |
commit | 0c0105c28e654289067245ecd66df59bf93e8682 (patch) | |
tree | 93b3496f5ad49b706ac6a93c4f9ed01fff2d2bae /ticket.c | |
parent | e39fa22f6896b7b7200229ffba95c56074a17535 (diff) |
Make ticket list iteration type more correct
Diffstat (limited to 'ticket.c')
-rw-r--r-- | ticket.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -69,7 +69,7 @@ static size_t search_callback(void *contents, size_t size, size_t nmemb line = strtok_r(lines, "\n", &linesaveptr); line = strtok_r(NULL, "\n", &linesaveptr); char *tokensaveptr = NULL, *token = NULL; - for (unsigned int i = 0; i < list->length; i++) { + for (size_t i = 0; i < list->length; i++) { list->tickets[i] = malloc(sizeof(rtclient_ticket)); rtclient_ticket *ticket = list->tickets[i]; token = strtok_r(line, ":", &tokensaveptr); @@ -105,7 +105,7 @@ void rtclient_ticket_search(rtclient_ticketlist **listptr, const char *query) void rtclient_ticket_freelist(rtclient_ticketlist *list) { - for (unsigned short i = 0; i < list->length; i++) { + for (size_t i = 0; i < list->length; i++) { rtclient_ticket *ticket = list->tickets[i]; free(ticket->subject); free(ticket); |