diff --git a/src/plugins/mod_chat_history.c b/src/plugins/mod_chat_history.c index 43ab016..67d9105 100644 --- a/src/plugins/mod_chat_history.c +++ b/src/plugins/mod_chat_history.c @@ -67,7 +67,7 @@ static size_t get_messages(struct chat_history_data* data, size_t num, struct cb char* message; int skiplines = 0; size_t lines = 0; - int total = list_size(messages); + size_t total = list_size(messages); if (total == 0) return 0; diff --git a/src/system.h b/src/system.h index e4671fe..12e5b3c 100644 --- a/src/system.h +++ b/src/system.h @@ -270,6 +270,7 @@ typedef unsigned __int64 uint64_t; #define open _open #define close _close #define read _read +#define write _write #define NEED_GETOPT #endif