summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2003-08-15 17:13:41 +0000
committerHerb Lewis <herb@samba.org>2003-08-15 17:13:41 +0000
commitf24c298f43a86d117314007246e1175af74a7d96 (patch)
tree10528b2c2386bd6c0ed09bcc80eb4b07c208ac23 /source4/lib
parentcc38992e3f6c6ca04ae7170cb03028d3d1c06ae3 (diff)
downloadsamba-f24c298f43a86d117314007246e1175af74a7d96.tar.gz
samba-f24c298f43a86d117314007246e1175af74a7d96.tar.bz2
samba-f24c298f43a86d117314007246e1175af74a7d96.zip
rename mutex_t to smb_mutex_t to prevent name collision
(This used to be commit d32f14959277a5b7d1302638b65ff1fc568f08a9)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/mutex.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/lib/mutex.c b/source4/lib/mutex.c
index 1be23a52ba..18b7e08b5a 100644
--- a/source4/lib/mutex.c
+++ b/source4/lib/mutex.c
@@ -20,7 +20,7 @@
*/
#include "includes.h"
-static mutex_t mutex_list[MUTEX_MAX];
+static smb_mutex_t mutex_list[MUTEX_MAX];
/* the registered mutex handlers */
static struct {
@@ -38,7 +38,7 @@ int mutex_unlock_by_id(enum mutex_id id, const char *name)
return mutex_unlock(&mutex_list[id], name);
}
-int mutex_init(mutex_t *mutex, const char *name)
+int mutex_init(smb_mutex_t *mutex, const char *name)
{
if (mutex_handlers.ops.mutex_init) {
return mutex_handlers.ops.mutex_init(mutex, name);
@@ -46,7 +46,7 @@ int mutex_init(mutex_t *mutex, const char *name)
return 0;
}
-int mutex_destroy(mutex_t *mutex, const char *name)
+int mutex_destroy(smb_mutex_t *mutex, const char *name)
{
if (mutex_handlers.ops.mutex_destroy) {
return mutex_handlers.ops.mutex_destroy(mutex, name);
@@ -54,7 +54,7 @@ int mutex_destroy(mutex_t *mutex, const char *name)
return 0;
}
-int mutex_lock(mutex_t *mutex, const char *name)
+int mutex_lock(smb_mutex_t *mutex, const char *name)
{
if (mutex_handlers.ops.mutex_lock) {
return mutex_handlers.ops.mutex_lock(mutex, name);
@@ -62,7 +62,7 @@ int mutex_lock(mutex_t *mutex, const char *name)
return 0;
}
-int mutex_unlock(mutex_t *mutex, const char *name)
+int mutex_unlock(smb_mutex_t *mutex, const char *name)
{
if (mutex_handlers.ops.mutex_unlock) {
return mutex_handlers.ops.mutex_unlock(mutex, name);