aboutsummaryrefslogtreecommitdiffstats
path: root/tests/socket-test.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-08-29 14:12:11 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-08-29 14:12:11 -0400
commit2be6e0ed142bac669398a9ad26d336666fa53216 (patch)
tree44b8df67c170eca8716663368cacf0c5de0e4bf8 /tests/socket-test.c
parenttests: ensure sanity leak check tests pass when leak checks are disabled. (diff)
downloadwayland-2be6e0ed142bac669398a9ad26d336666fa53216.tar
wayland-2be6e0ed142bac669398a9ad26d336666fa53216.tar.gz
wayland-2be6e0ed142bac669398a9ad26d336666fa53216.tar.bz2
wayland-2be6e0ed142bac669398a9ad26d336666fa53216.tar.lz
wayland-2be6e0ed142bac669398a9ad26d336666fa53216.tar.xz
wayland-2be6e0ed142bac669398a9ad26d336666fa53216.tar.zst
wayland-2be6e0ed142bac669398a9ad26d336666fa53216.zip
tests: Quiet warning
Diffstat (limited to 'tests/socket-test.c')
-rw-r--r--tests/socket-test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/socket-test.c b/tests/socket-test.c
index f0c06f4..7cbc1fa 100644
--- a/tests/socket-test.c
+++ b/tests/socket-test.c
@@ -37,7 +37,8 @@ static const struct sockaddr_un example_sockaddr_un;
#define TOO_LONG (1 + sizeof example_sockaddr_un.sun_path)
/* Ensure the connection doesn't fail due to lack of XDG_RUNTIME_DIR. */
-static void require_xdg_runtime_dir()
+static void
+require_xdg_runtime_dir(void)
{
char *val = getenv("XDG_RUNTIME_DIR");
if (!val)