summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-08-28 02:22:44 +0000
committerAndrew Tridgell <tridge@samba.org>1997-08-28 02:22:44 +0000
commit1d4ce07435f3d6dac41a2616a044bcd441dbaced (patch)
tree1795bc70b679a4c46bbcb32d02ec99da9e45e720
parentc7a4647b7a84641f5fed6b67d45c241fff19c2b3 (diff)
downloadsamba-1d4ce07435f3d6dac41a2616a044bcd441dbaced.tar.gz
samba-1d4ce07435f3d6dac41a2616a044bcd441dbaced.tar.xz
samba-1d4ce07435f3d6dac41a2616a044bcd441dbaced.zip
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
-rw-r--r--source/locking/shmem.c2
-rw-r--r--source/script/mkproto.awk2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/locking/shmem.c b/source/locking/shmem.c
index fcd9f3ad0d7..fc8dfbb9f39 100644
--- a/source/locking/shmem.c
+++ b/source/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/source/script/mkproto.awk b/source/script/mkproto.awk
index 08b13d46108..88d81a62cd9 100644
--- a/source/script/mkproto.awk
+++ b/source/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;
}