summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index adf3dfb..03dc2e3 100644
--- a/main.c
+++ b/main.c
@@ -1,7 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <stdbool.h>
#include <rtclient/client.h>
+#include <rtclient/user.h>
+#include <rtclient/ticket.h>
int main(void)
{
@@ -66,7 +69,7 @@ int main(void)
sprintf(query, "%s%s'", prefix, name);
rtclient_ticket_search(&list, query);
if (list) {
- for (unsigned short i = 0; i < list->length; i++) {
+ for (size_t i = 0; i < list->length; i++) {
char *ticket = list->tickets[i];
printf("Ticket %d: %s\n", i, ticket);
}