aboutsummaryrefslogtreecommitdiff
path: root/test/mocks.c
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-02-18 16:11:33 +0000
committerGitHub <noreply@github.com>2021-02-18 16:11:33 +0000
commitaf3118fb5eeb37ac5ace4bdfaa45b02ba78ddd7f (patch)
treeb4f5f2a8ccaeb5c2a686fe1bbd77c340d35858bf /test/mocks.c
parentc4f6f81007cf6ab720067d8f8e9288c5dfd5a720 (diff)
downloadlibvfio-user-af3118fb5eeb37ac5ace4bdfaa45b02ba78ddd7f.zip
libvfio-user-af3118fb5eeb37ac5ace4bdfaa45b02ba78ddd7f.tar.gz
libvfio-user-af3118fb5eeb37ac5ace4bdfaa45b02ba78ddd7f.tar.bz2
use UNUSED consistently (#350)
Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test/mocks.c')
-rw-r--r--test/mocks.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/mocks.c b/test/mocks.c
index 363e9ca..6302eff 100644
--- a/test/mocks.c
+++ b/test/mocks.c
@@ -182,15 +182,15 @@ __wrap_process_request(vfu_ctx_t *vfu_ctx)
return mock();
}
-int __wrap_bind(int sockfd __attribute__((unused)),
- const struct sockaddr *addr __attribute__((unused)),
- socklen_t addrlen __attribute__((unused)))
+int
+__wrap_bind(int sockfd UNUSED, const struct sockaddr *addr UNUSED,
+ socklen_t addrlen UNUSED)
{
return 0;
}
-int __wrap_listen(int sockfd __attribute__((unused)),
- int backlog __attribute__((unused)))
+int
+__wrap_listen(int sockfd UNUSED, int backlog UNUSED)
{
return 0;
}