[xiph-cvs] cvs commit: thread thread.c

Michael Smith msmith at xiph.org
Fri Jan 17 01:01:04 PST 2003



msmith      03/01/17 04:01:04

  Modified:    .        configure.in
               .        httpp.c
               .        thread.c
  Log:
  Fix some warnings, fix cflags.

Revision  Changes    Path
1.10      +3 -3      libshout/configure.in

Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/libshout/configure.in,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- configure.in	13 Jan 2003 04:30:26 -0000	1.9
+++ configure.in	17 Jan 2003 09:01:04 -0000	1.10
@@ -40,9 +40,9 @@
 else
         case $host in 
         *-*-linux*)
-                DEBUG="-g -Wall -W -fsigned-char -D_REENTRANT -D_GNU_SOURCE"
-                CFLAGS="-Wall -W -O20 -ffast-math -fsigned-char -D_REENTRANT -D_GNU_SOURCE"
-                PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char -D_REENTRANT -D_GNU_SOURCE"
+                DEBUG="-g -Wall -fsigned-char -D_REENTRANT -D_GNU_SOURCE"
+                CFLAGS="-Wall -O2 -ffast-math -fsigned-char -D_REENTRANT -D_GNU_SOURCE"
+                PROFILE="-Wall -pg -g -O2 -ffast-math -fsigned-char -D_REENTRANT -D_GNU_SOURCE"
                 ;;
         sparc-sun-*)
                 DEBUG="-g -Wall -fsigned-char -mv8"

<p><p>1.12      +2 -1      httpp/httpp.c

Index: httpp.c
===================================================================
RCS file: /usr/local/cvsroot/httpp/httpp.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- httpp.c	16 Jan 2003 05:48:31 -0000	1.11
+++ httpp.c	17 Jan 2003 09:01:04 -0000	1.12
@@ -55,7 +55,8 @@
         /* 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')

<p><p>1.19      +6 -3      thread/thread.c

Index: thread.c
===================================================================
RCS file: /usr/local/cvsroot/thread/thread.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- thread.c	29 Dec 2002 09:55:50 -0000	1.18
+++ thread.c	17 Jan 2003 09:01:04 -0000	1.19
@@ -88,12 +88,15 @@
 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 */
 

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list