From e95a892fb7fcb17947d1a3f26a5adc0c32c4c336 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Tue, 2 Oct 2012 22:47:43 +0200 Subject: [PATCH] MSVC compile warnings fixed. --- src/plugins/mod_chat_history.c | 2 +- src/system.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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