Module Name: src Committed By: pooka Date: Thu May 7 14:45:19 UTC 2009
Modified Files: src/tests/syscall: t_cmsg.c Log Message: Rename variable to reflect current use. no functional change. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 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.3 src/tests/syscall/t_cmsg.c:1.4 --- src/tests/syscall/t_cmsg.c:1.3 Mon May 4 00:14:59 2009 +++ src/tests/syscall/t_cmsg.c Thu May 7 14:45:19 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: t_cmsg.c,v 1.3 2009/05/04 00:14:59 pooka Exp $ */ +/* $NetBSD: t_cmsg.c,v 1.4 2009/05/07 14:45:19 pooka Exp $ */ #include <sys/types.h> #include <sys/socket.h> @@ -30,7 +30,7 @@ struct msghdr msg; struct iovec iov; int s[2]; - int error = 0; + int fd; rump_init(); @@ -39,7 +39,7 @@ cmp = malloc(CMSG_LEN(sizeof(int))); - iov.iov_base = &error; + iov.iov_base = &fd; iov.iov_len = sizeof(int); cmp->cmsg_level = SOL_SOCKET; @@ -80,7 +80,7 @@ struct msghdr msg; struct iovec iov; int s[2], sgot; - int error = 0; + int fd; int v1, v2; rump_init(); @@ -90,7 +90,7 @@ cmp = malloc(CMSG_LEN(sizeof(int))); - iov.iov_base = &error; + iov.iov_base = &fd; iov.iov_len = sizeof(int); cmp->cmsg_level = SOL_SOCKET;