diff options
author | Jakub Hrozek <jakub.hrozek@gmail.com> | 2013-12-23 14:57:14 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-12-23 14:29:41 +0100 |
commit | 450f4f31c5afe4516a5db5fc071aa012dfb64202 (patch) | |
tree | 3d7c1a11c1c61fcaabddf65262139e60aa4e6746 /tests/test_ioctl.c | |
parent | b7f7ed387070f48f6ef4ebfe5a4d9315010b6288 (diff) | |
download | socket_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.c | 2 |
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 */ |