summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-03-29 07:24:00 +0200
committerVolker Lendecke <vl@samba.org>2010-03-29 07:26:00 +0200
commit0dac5d2ab362c128e184e06a73364bc48f748fd2 (patch)
treecfd02918708c8f3d8f9cec6fad1d5599ceac6428 /source3
parentba74823c8f42dd3f4f0883163e42888ec35baf32 (diff)
downloadsamba-0dac5d2ab362c128e184e06a73364bc48f748fd2.tar.gz
samba-0dac5d2ab362c128e184e06a73364bc48f748fd2.tar.bz2
samba-0dac5d2ab362c128e184e06a73364bc48f748fd2.zip
s3: Attempt to fix the build on AIX, shm_ptr seems to be a macro there
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/signing.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/smbd/signing.c b/source3/smbd/signing.c
index 83655624c0..5370f57884 100644
--- a/source3/smbd/signing.c
+++ b/source3/smbd/signing.c
@@ -89,7 +89,7 @@ void srv_cancel_sign_response(struct smbd_server_connection *conn)
struct smbd_shm_signing {
size_t shm_size;
- uint8_t *shm_ptr;
+ uint8_t *shm_pointer;
/* we know the signing engine will only allocate 2 chunks */
uint8_t *ptr1;
@@ -113,7 +113,7 @@ static void *smbd_shm_signing_alloc(TALLOC_CTX *mem_ctx, size_t len)
errno = ENOMEM;
return NULL;
}
- s->ptr1 = s->shm_ptr;
+ s->ptr1 = s->shm_pointer;
return s->ptr1;
}
@@ -124,7 +124,7 @@ static void *smbd_shm_signing_alloc(TALLOC_CTX *mem_ctx, size_t len)
errno = ENOMEM;
return NULL;
}
- s->ptr2 = s->shm_ptr + s->len1;
+ s->ptr2 = s->shm_pointer + s->len1;
return s->ptr2;
}
@@ -174,8 +174,9 @@ bool srv_init_signing(struct smbd_server_connection *conn)
return false;
}
s->shm_size = 4096;
- s->shm_ptr = (uint8_t *)allocate_anonymous_shared(s->shm_size);
- if (s->shm_ptr == NULL) {
+ s->shm_pointer =
+ (uint8_t *)allocate_anonymous_shared(s->shm_size);
+ if (s->shm_pointer == NULL) {
talloc_free(s);
return false;
}