summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2012-05-03 18:30:38 +0200
committerChristian Ambach <ambi@samba.org>2012-05-03 21:34:05 +0200
commit1d069ed80696452b1a78298d8aff22e6c22e2c3c (patch)
tree01bfebffd7508a76dc799f0642724e775327fdfe
parentd3b4c2c7714091a588f6aeaf784380cea54e73cf (diff)
downloadsamba-1d069ed80696452b1a78298d8aff22e6c22e2c3c.tar.gz
samba-1d069ed80696452b1a78298d8aff22e6c22e2c3c.tar.bz2
samba-1d069ed80696452b1a78298d8aff22e6c22e2c3c.zip
s3:lib fix compiler warnings
g_lock.c:182:20: warning: no previous prototype for ‘g_lock_lock_send’ g_lock.c:270:10: warning: no previous prototype for ‘g_lock_lock_recv’
-rw-r--r--source3/include/g_lock.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/g_lock.h b/source3/include/g_lock.h
index 1ac8418922..004c452fd0 100644
--- a/source3/include/g_lock.h
+++ b/source3/include/g_lock.h
@@ -32,6 +32,12 @@ enum g_lock_type {
struct g_lock_ctx *g_lock_ctx_init(TALLOC_CTX *mem_ctx,
struct messaging_context *msg);
+struct tevent_req *g_lock_lock_send(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ struct g_lock_ctx *ctx,
+ const char *name,
+ enum g_lock_type type);
+NTSTATUS g_lock_lock_recv(struct tevent_req *req);
NTSTATUS g_lock_lock(struct g_lock_ctx *ctx, const char *name,
enum g_lock_type lock_type, struct timeval timeout);
NTSTATUS g_lock_unlock(struct g_lock_ctx *ctx, const char *name);