Skip to contentSkip to conversation

device-mapper dmeventd/dmeventd.c lib/libdm-st ...

PATCH [email protected] 1 participant 1 message Jan 8, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/dm
Module name: device-mapper
Changes by: [email protected] 2007-01-08 15:35:08

Modified files:
dmeventd : dmeventd.c
lib : libdm-string.c

Log message:
fix last checkin

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/dmeventd/dmeventd.c.diff?cvsroot=dm&r1=1.26&r2=1.27
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/libdm-string.c.diff?cvsroot=dm&r1=1.3&r2=1.4

dmeventd/dmeventd.c +4 -2
@@ -40,6 +40,8 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
+
+#include <sys/resource.h>
 #include <unistd.h>
 #include <stdarg.h>
 #include <arpa/inet.h> /* for htonl, ntohl */
@@ -1453,7 +1455,7 @@
 
 	init_fifos(&fifos);
 
-	pthread_mutex_init(&mutex, NULL);
+	pthread_mutex_init(&_global_mutex, NULL);
 
 #ifdef MCL_CURRENT
 	if (mlockall(MCL_CURRENT | MCL_FUTURE) == -1)
@@ -1481,7 +1483,7 @@
 #ifdef MCL_CURRENT
 	munlockall();
 #endif
-	pthread_mutex_destroy(&_mutex);
+	pthread_mutex_destroy(&_global_mutex);
 
 	syslog(LOG_INFO, "dmeventd shutting down.");
 	closelog();
lib/libdm-string.c +1 -1
@@ -126,6 +126,6 @@
 {
 	char *p = strrchr(path, '/');
 
-	return p ? p + 1 : path;
+	return p ? p + 1 : (char *) path;
 }