From 22e4d4e9d44577593d53ad84e77c9c078774d2e9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 28 Aug 1997 02:22:44 +0000 Subject: added a new type to mkproto.awk so it can handle shmem.c in general if you add a new type that is returned by a non-static function then just add it to the list of known types in mkproto.awk (This used to be commit 1d4ce07435f3d6dac41a2616a044bcd441dbaced) --- source3/locking/shmem.c | 2 +- source3/script/mkproto.awk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/locking/shmem.c b/source3/locking/shmem.c index fcd9f3ad0d..fc8dfbb9f3 100644 --- a/source3/locking/shmem.c +++ b/source3/locking/shmem.c @@ -733,7 +733,7 @@ BOOL smb_shm_set_userdef_off(smb_shm_offset_t userdef_off) return True; } -void * smb_shm_offset2addr(smb_shm_offset_t offset) +void *smb_shm_offset2addr(smb_shm_offset_t offset) { if (offset == NULL_OFFSET ) return (void *)(0); diff --git a/source3/script/mkproto.awk b/source3/script/mkproto.awk index 08b13d4610..88d81a62cd 100644 --- a/source3/script/mkproto.awk +++ b/source3/script/mkproto.awk @@ -64,7 +64,7 @@ BEGIN { next; } -!/^unsigned|^mode_t|^DIR|^user|^int|^char|^uint|^struct|^BOOL|^void|^time|^shm_offset_t/ { +!/^unsigned|^mode_t|^DIR|^user|^int|^char|^uint|^struct|^BOOL|^void|^time|^smb_shm_offset_t|^shm_offset_t/ { next; } -- cgit