chiark / gitweb /
test-hashmap: fix gcc5 warning
[elogind.git] / src / test / test-ring.c
index 5e4efdbde9a4c53bc3846513fc3fc11391d97c4a..cb8a5d4e9e7fa6cebcd83f4b7738f5237395ab23 100644 (file)
 ***/
 
 #include <string.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <locale.h>
-#include <errno.h>
 
 #include "def.h"
 #include "ring.h"
-#include "util.h"
 
 static void test_ring(void) {
         static const char buf[8192];
@@ -36,7 +31,7 @@ static void test_ring(void) {
         struct iovec vec[2];
         int s;
 
-        memset(&r, 0, sizeof(r));
+        zero(r);
 
         l = ring_peek(&r, vec);
         assert_se(l == 0);