From 38a1834bd6515cc06fe46ef6fcf408e6a60d83c7 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 17 Jan 2003 09:01:04 +0000 Subject: [PATCH] Fix some warnings, fix cflags. svn path=/trunk/httpp/; revision=4258 --- httpp/httpp.c | 3 ++- thread/thread.c | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/httpp/httpp.c b/httpp/httpp.c index 9bb83f3..fa6bbca 100644 --- a/httpp/httpp.c +++ b/httpp/httpp.c @@ -55,7 +55,8 @@ static int split_headers(char *data, unsigned long len, char **line) /* first we count how many lines there are ** and set up the line[] array */ - int i, lines = 0; + int lines = 0; + unsigned long i; line[lines] = data; for (i = 0; i < len && lines < MAX_HEADERS; i++) { if (data[i] == '\r') diff --git a/thread/thread.c b/thread/thread.c index 53f4479..e6f42bb 100644 --- a/thread/thread.c +++ b/thread/thread.c @@ -88,12 +88,15 @@ static int _logid = -1; static long _next_thread_id = 0; static int _initialized = 0; static avl_tree *_threadtree = NULL; -static mutex_t _threadtree_mutex = { -1, NULL, MUTEX_STATE_UNINIT, NULL, -1 }; +static mutex_t _threadtree_mutex = { -1, NULL, MUTEX_STATE_UNINIT, NULL, -1, + PTHREAD_MUTEX_INITIALIZER}; static long _next_mutex_id = 0; static avl_tree *_mutextree = NULL; -static mutex_t _mutextree_mutex = { -1, NULL, MUTEX_STATE_UNINIT, NULL, -1 }; -static mutex_t _library_mutex = { -1, NULL, MUTEX_STATE_UNINIT, NULL, -1 }; +static mutex_t _mutextree_mutex = { -1, NULL, MUTEX_STATE_UNINIT, NULL, -1, + PTHREAD_MUTEX_INITIALIZER}; +static mutex_t _library_mutex = { -1, NULL, MUTEX_STATE_UNINIT, NULL, -1, + PTHREAD_MUTEX_INITIALIZER}; /* INTERNAL FUNCTIONS */