summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index e0129e4..e18939f 100644
--- a/main.c
+++ b/main.c
@@ -70,8 +70,8 @@ int main(void)
rtclient_ticket_search(&list, query);
if (list) {
for (size_t i = 0; i < list->length; i++) {
- char *ticket = list->tickets[i];
- printf("Ticket %zu: %s\n", i, ticket);
+ struct rtclient_ticket *ticket = list->tickets[i];
+ printf("%d: %s\n", ticket->id, ticket->subject);
}
rtclient_ticket_freelist(list);
}