summaryrefslogtreecommitdiffstats
path: root/tests/test_ioctl.c
diff options
context:
space:
mode:
authorJakub Hrozek <jakub.hrozek@gmail.com>2013-12-23 14:57:14 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-12-23 14:29:41 +0100
commit450f4f31c5afe4516a5db5fc071aa012dfb64202 (patch)
tree3d7c1a11c1c61fcaabddf65262139e60aa4e6746 /tests/test_ioctl.c
parentb7f7ed387070f48f6ef4ebfe5a4d9315010b6288 (diff)
downloadsocket_wrapper-450f4f31c5afe4516a5db5fc071aa012dfb64202.tar.gz
socket_wrapper-450f4f31c5afe4516a5db5fc071aa012dfb64202.tar.xz
socket_wrapper-450f4f31c5afe4516a5db5fc071aa012dfb64202.zip
tests: Remove unused variable warning
The variables were unused if SIOCGPGRP wasn't defined.
Diffstat (limited to 'tests/test_ioctl.c')
-rw-r--r--tests/test_ioctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_ioctl.c b/tests/test_ioctl.c
index 0c9bfc6..d365641 100644
--- a/tests/test_ioctl.c
+++ b/tests/test_ioctl.c
@@ -69,8 +69,10 @@ static void test_swrap_socket(void **state)
static void test_swrap_ioctl_sock(void **state)
{
int fd;
+#ifdef SIOCGPGRP
int rc;
int grp = -127;
+#endif
(void) state; /* unused */