mirror of
https://github.com/samba-team/samba.git
synced 2025-12-16 00:23:52 +03:00
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 commit is contained in:
@@ -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"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user