git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a842a3d
)
Add UNUSED(paramname) macro to be used in parameter lists, to quieten
author
Martin Pool
<mbp@samba.org>
Wed, 9 Jan 2002 05:27:27 +0000
(
05:27
+0000)
committer
Martin Pool
<mbp@samba.org>
Wed, 9 Jan 2002 05:27:27 +0000
(
05:27
+0000)
gcc warnings about unused parameters.
msg_pool_usage: assert msg_type is as expected.
(This used to be commit
3ef135e91aaebf9648c4dd13f59686f57f4cff70
)
source3/lib/tallocmsg.c
patch
|
blob
|
history
diff --git
a/source3/lib/tallocmsg.c
b/source3/lib/tallocmsg.c
index fabc06fb9396377cd742dc3ee1f659bd53dfa0cd..8d99db666c6377f2e8a727a24a9e9b579cc58b8f 100644
(file)
--- 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"));