lib/util: s/allocate_anonymous_shared/anonymous_shared_allocate/
authorStefan Metzmacher <metze@samba.org>
Tue, 26 Oct 2010 20:41:46 +0000 (22:41 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Oct 2010 07:33:34 +0000 (09:33 +0200)
metze

lib/util/util.c
lib/util/util.h
source3/smbd/signing.c

index 42beed4bcb65321cc9aaf8154ec75744d9a80c5d..2bd772b03d921e92bb0754c95af5c64a8a1e80b0 100644 (file)
@@ -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();
index 0073aa90513b0baa1e0a66cd0afb1e89bdd98cfe..93224e53a3fdc9a67c0e4759fdf217045ddd6042 100644 (file)
@@ -857,7 +857,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.
index ad7fa872adc3863ec7560bca337a743dc9ef1cc0..65fe4571ce68dbf4850a595f1799ca3c3965bb85 100644 (file)
@@ -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;