***/
#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];
struct iovec vec[2];
int s;
- memset(&r, 0, sizeof(r));
+ zero(r);
l = ring_peek(&r, vec);
assert_se(l == 0);