rbb 99/02/21 14:40:25
Modified: pthreads/src/os/unix multithread.c os-inline.c
Log:
Some small cleanups. These basically just get rid of a few warnings that were
bothering me today.
Revision Changes Path
1.5 +0 -1 apache-apr/pthreads/src/os/unix/multithread.c
Index: multithread.c
===================================================================
RCS file: /home/cvs/apache-apr/pthreads/src/os/unix/multithread.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- multithread.c 1999/02/04 20:31:22 1.4
+++ multithread.c 1999/02/21 22:40:25 1.5
@@ -5,7 +5,6 @@
API_EXPORT(mutex *) ap_create_mutex(char * name)
{
- int rv;
pthread_mutex_t * mutex_var = (pthread_mutex_t
*)malloc(sizeof(pthread_mutex_t));
if (0 == pthread_mutex_init(mutex_var, NULL)) {
1.3 +4 -0 apache-apr/pthreads/src/os/unix/os-inline.c
Index: os-inline.c
===================================================================
RCS file: /home/cvs/apache-apr/pthreads/src/os/unix/os-inline.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- os-inline.c 1999/02/04 20:31:23 1.2
+++ os-inline.c 1999/02/21 22:40:25 1.3
@@ -16,6 +16,7 @@
* INLINE will _not_ be set so we can use this to test if we are
* compiling this source file.
*/
+#include <unistd.h>
#ifndef INLINE
#define INLINE
@@ -39,6 +40,9 @@
} else if (pid == 0) {
if (execvp(file, argv) == -1)
return -1;
+ else
+ return -1; /* If we get, we have a real error, but this keeps
+ us from getting a warning during compile time. */
} else
return pid;
}