From a6059f910055c5213ecc13801f50bf2ff5fd6ff9 Mon Sep 17 00:00:00 2001 From: pooka Date: Mon, 4 May 2009 00:14:59 +0000 Subject: [PATCH] g/c unused variables --- tests/syscall/t_cmsg.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/syscall/t_cmsg.c b/tests/syscall/t_cmsg.c index d65749d708cf..de899bb1844e 100644 --- a/tests/syscall/t_cmsg.c +++ b/tests/syscall/t_cmsg.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_cmsg.c,v 1.2 2009/05/03 23:19:59 pooka Exp $ */ +/* $NetBSD: t_cmsg.c,v 1.3 2009/05/04 00:14:59 pooka Exp $ */ #include #include @@ -29,16 +29,14 @@ ATF_TC_BODY(cmsg_sendfd_bounds, tc) struct cmsghdr *cmp; struct msghdr msg; struct iovec iov; - ssize_t n; int s[2]; - int rv, error = 0; + int error = 0; rump_init(); if (rump_sys_socketpair(AF_LOCAL, SOCK_STREAM, 0, s) == -1) atf_tc_fail("rump_sys_socket"); - rv = 0; cmp = malloc(CMSG_LEN(sizeof(int))); iov.iov_base = &error; @@ -81,9 +79,8 @@ ATF_TC_BODY(cmsg_sendfd, tc) struct cmsghdr *cmp; struct msghdr msg; struct iovec iov; - ssize_t n; int s[2], sgot; - int rv, error = 0; + int error = 0; int v1, v2; rump_init(); @@ -91,7 +88,6 @@ ATF_TC_BODY(cmsg_sendfd, tc) if (rump_sys_socketpair(AF_LOCAL, SOCK_STREAM, 0, s) == -1) atf_tc_fail("rump_sys_socketpair"); - rv = 0; cmp = malloc(CMSG_LEN(sizeof(int))); iov.iov_base = &error;