summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2016-10-03 18:58:49 -0700
committerRuss Allbery <eagle@eyrie.org>2016-10-03 18:58:49 -0700
commit67a2f72e93de4d3235c2d145293adb93566a6986 (patch)
tree205cf7adf1ec698eedc315d1353c46b7ca263548 /tests
parent11767aada87091075ebe0030765826de82f1edaf (diff)
Import new warning flag handling from rra-c-util
Use Autoconf to probe for warning flags, update rra-c-util files with various warning fixes, and fix newly-discovered warnings in the remctl source base caught by GCC 6.
Diffstat (limited to 'tests')
-rw-r--r--tests/server/ssh-parse-t.c2
-rw-r--r--tests/util/network/server-t.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/ssh-parse-t.c b/tests/server/ssh-parse-t.c
index 1be56b9..28c7a23 100644
--- a/tests/server/ssh-parse-t.c
+++ b/tests/server/ssh-parse-t.c
@@ -19,7 +19,7 @@
/*
* Check a struct iovec against a string.
*/
-static bool
+static bool __attribute__((__format__(printf, 3, 4)))
is_iovec_string(const char *wanted, const struct iovec *seen,
const char *format, ...)
{
diff --git a/tests/util/network/server-t.c b/tests/util/network/server-t.c
index 9aaf208..c82d725 100644
--- a/tests/util/network/server-t.c
+++ b/tests/util/network/server-t.c
@@ -404,7 +404,7 @@ test_all(const char *source_ipv4, const char *source_ipv6 UNUSED)
fd = fds[i];
if (listen(fd, 1) < 0)
sysbail("cannot listen to socket %d", fd);
- ok(fd != INVALID_SOCKET, "all address server test (part %d)", i + 1);
+ ok(fd != INVALID_SOCKET, "all address server test (part %u)", i + 1);
/* Get the socket type to determine what type of client to run. */
saddr = get_sockaddr(fd);