Module Name: src Committed By: pooka Date: Mon May 4 00:14:59 UTC 2009
Modified Files: src/tests/syscall: t_cmsg.c Log Message: g/c unused variables To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/syscall/t_cmsg.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/syscall/t_cmsg.c diff -u src/tests/syscall/t_cmsg.c:1.2 src/tests/syscall/t_cmsg.c:1.3 --- src/tests/syscall/t_cmsg.c:1.2 Sun May 3 23:19:59 2009 +++ src/tests/syscall/t_cmsg.c Mon May 4 00:14:59 2009 @@ -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 <sys/types.h> #include <sys/socket.h> @@ -29,16 +29,14 @@ 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 @@ 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 @@ 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;