From 0898723a7387f8e5d3086dd9511d88561ccc2593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Fri, 20 Sep 2019 10:25:17 +0800 Subject: Change ticket list length type to size_t and might as well isolate recursive header inclusions --- rtclient/client.h | 3 --- rtclient/ticket.h | 2 +- rtclient/user.h | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) (limited to 'rtclient') 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 - enum rtclient_lang { RTCLIENT_LANG_NONE = 0 , RTCLIENT_LANG_ar -- cgit v1.2.3