summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-10-26 22:41:46 +0200
committerStefan Metzmacher <metze@samba.org>2011-01-20 05:31:45 +0100
commit34ea9096366fe475891a0aee7b3bbc74bfe07032 (patch)
treeb15f9dad9de6747d2e3bd2d7fceae0b008a4842b
parent9e00d2a9a47d03b41e88407eb89395b870a104a5 (diff)
downloadsamba-34ea9096366fe475891a0aee7b3bbc74bfe07032.tar.gz
samba-34ea9096366fe475891a0aee7b3bbc74bfe07032.tar.bz2
samba-34ea9096366fe475891a0aee7b3bbc74bfe07032.zip
lib/util: s/allocate_anonymous_shared/anonymous_shared_allocate/
metze
-rw-r--r--lib/util/util.c2
-rw-r--r--lib/util/util.h2
-rw-r--r--source3/smbd/signing.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/util/util.c b/lib/util/util.c
index 8928026e80..db71def4c4 100644
--- a/lib/util/util.c
+++ b/lib/util/util.c
@@ -937,7 +937,7 @@ bool next_token_no_ltrim_talloc(TALLOC_CTX *ctx,
}
/* Map a shared memory buffer of at least nelem counters. */
-void *allocate_anonymous_shared(size_t bufsz)
+void *anonymous_shared_allocate(size_t bufsz)
{
void *buf;
size_t pagesz = getpagesize();
diff --git a/lib/util/util.h b/lib/util/util.h
index 86bb3daace..04ea20d07d 100644
--- a/lib/util/util.h
+++ b/lib/util/util.h
@@ -858,7 +858,7 @@ bool add_gid_to_array_unique(TALLOC_CTX *mem_ctx, gid_t gid,
/**
* Allocate anonymous shared memory of the given size
*/
-void *allocate_anonymous_shared(size_t bufsz);
+void *anonymous_shared_allocate(size_t bufsz);
/*
run a command as a child process, with a timeout.
diff --git a/source3/smbd/signing.c b/source3/smbd/signing.c
index ad7fa872ad..65fe4571ce 100644
--- a/source3/smbd/signing.c
+++ b/source3/smbd/signing.c
@@ -175,7 +175,7 @@ bool srv_init_signing(struct smbd_server_connection *conn)
}
s->shm_size = 4096;
s->shm_pointer =
- (uint8_t *)allocate_anonymous_shared(s->shm_size);
+ (uint8_t *)anonymous_shared_allocate(s->shm_size);
if (s->shm_pointer == NULL) {
talloc_free(s);
return false;