]> Zhao Yanbai Git Server - minix.git/commitdiff
Remove unused variables
authorThomas Veerman <thomas@minix3.org>
Thu, 2 Feb 2012 10:47:06 +0000 (10:47 +0000)
committerThomas Veerman <thomas@minix3.org>
Thu, 2 Feb 2012 10:47:06 +0000 (10:47 +0000)
test/test56.c

index 2f678639aad6647616196d7811f38ed56a8a2541..360e2a6250c07e6e2a0a9d2a6021d07b22869e0a 100644 (file)
@@ -2480,8 +2480,7 @@ void test_permissions(void) {
 
        pid_t pid;
        int sd, rc, status;
-       struct sockaddr_un addr, client_addr;
-       char buf[10];
+       struct sockaddr_un addr;
        socklen_t client_addr_size;
 
        client_addr_size = sizeof(struct sockaddr_un);
@@ -2536,7 +2535,6 @@ void test_permissions(void) {
                        test_fail("connect should not have worked");
                exit(errct);
        } else {
-               int client_sd;
                SOCKET(sd, PF_UNIX, SOCK_STREAM, 0);
                rc = bind(sd, (struct sockaddr *) &addr,
                                 sizeof(struct sockaddr_un));