summaryrefslogtreecommitdiff
path: root/rtclient
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-20 10:25:17 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-20 10:25:17 +0800
commit0898723a7387f8e5d3086dd9511d88561ccc2593 (patch)
treea60b88a83885a97e890ab4cbdfc53bece222068c /rtclient
parentc6d5739028f2337bd0418084a319705bd5b89840 (diff)
Change ticket list length type to size_t
and might as well isolate recursive header inclusions
Diffstat (limited to 'rtclient')
-rw-r--r--rtclient/client.h3
-rw-r--r--rtclient/ticket.h2
-rw-r--r--rtclient/user.h2
3 files changed, 1 insertions, 6 deletions
diff --git a/rtclient/client.h b/rtclient/client.h
index b132564..4f74536 100644
--- a/rtclient/client.h
+++ b/rtclient/client.h
@@ -1,9 +1,6 @@
#ifndef RTCLIENT_CLIENT_H
#define RTCLIENT_CLIENT_H
-#include "user.h"
-#include "ticket.h"
-
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/rtclient/ticket.h b/rtclient/ticket.h
index 74db994..87e7496 100644
--- a/rtclient/ticket.h
+++ b/rtclient/ticket.h
@@ -2,7 +2,7 @@
#define RTCLIENT_TICKET_H
struct rtclient_ticketlist {
- unsigned int length;
+ size_t length;
char *tickets[];
};
diff --git a/rtclient/user.h b/rtclient/user.h
index e9768a6..5c57cb7 100644
--- a/rtclient/user.h
+++ b/rtclient/user.h
@@ -1,8 +1,6 @@
#ifndef RTCLIENT_USER_H
#define RTCLIENT_USER_H
-#include <stdbool.h>
-
enum rtclient_lang {
RTCLIENT_LANG_NONE = 0
, RTCLIENT_LANG_ar