summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-01-09 05:27:27 +0000
committerMartin Pool <mbp@samba.org>2002-01-09 05:27:27 +0000
commite4bf9af03cf0b7ff589f3ed67838aa210903cc86 (patch)
tree3dd0da94f2998dd983d394ba3a308ebfe89d3032 /source3
parenta842a3d4582b556c77fcfb593af193b4d1225751 (diff)
downloadsamba-e4bf9af03cf0b7ff589f3ed67838aa210903cc86.tar.gz
samba-e4bf9af03cf0b7ff589f3ed67838aa210903cc86.tar.bz2
samba-e4bf9af03cf0b7ff589f3ed67838aa210903cc86.zip
Add UNUSED(paramname) macro to be used in parameter lists, to quieten
gcc warnings about unused parameters. msg_pool_usage: assert msg_type is as expected. (This used to be commit 3ef135e91aaebf9648c4dd13f59686f57f4cff70)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/tallocmsg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/tallocmsg.c b/source3/lib/tallocmsg.c
index fabc06fb93..8d99db666c 100644
--- a/source3/lib/tallocmsg.c
+++ b/source3/lib/tallocmsg.c
@@ -30,10 +30,13 @@
* Respond to a POOL_USAGE message by sending back string form of memory
* usage stats.
**/
-void msg_pool_usage(int msg_type, pid_t src_pid, void *buf, size_t len)
+void msg_pool_usage(int msg_type, pid_t src_pid,
+ void *UNUSED(buf), size_t UNUSED(len))
{
char *reply;
TALLOC_CTX *reply_pool = talloc_init_named("msg_pool_usage");
+
+ SMB_ASSERT(msg_type == MSG_REQ_POOL_USAGE);
DEBUG(2,("Got POOL_USAGE\n"));