1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-08 05:57:51 +03:00

lib/util: s/allocate_anonymous_shared/anonymous_shared_allocate/

metze
This commit is contained in:
Stefan Metzmacher 2010-10-26 22:41:46 +02:00
parent 9e00d2a9a4
commit 34ea909636
3 changed files with 3 additions and 3 deletions

View File

@ -937,7 +937,7 @@ bool next_token_no_ltrim_talloc(TALLOC_CTX *ctx,
} }
/* Map a shared memory buffer of at least nelem counters. */ /* 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; void *buf;
size_t pagesz = getpagesize(); size_t pagesz = getpagesize();

View File

@ -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 * 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. run a command as a child process, with a timeout.

View File

@ -175,7 +175,7 @@ bool srv_init_signing(struct smbd_server_connection *conn)
} }
s->shm_size = 4096; s->shm_size = 4096;
s->shm_pointer = s->shm_pointer =
(uint8_t *)allocate_anonymous_shared(s->shm_size); (uint8_t *)anonymous_shared_allocate(s->shm_size);
if (s->shm_pointer == NULL) { if (s->shm_pointer == NULL) {
talloc_free(s); talloc_free(s);
return false; return false;