Date: Tue, 28 Jul 2009 22:21:27 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 166704 for review Message-ID: <200907282221.n6SMLRbO049017@repoman.freebsd.org>
index | next in thread | raw e-mail
http://perforce.freebsd.org/chv.cgi?CH=166704 Change 166704 by rwatson@rwatson_freebsd_capabilities on 2009/07/28 22:21:16 Minor cleanup. Affected files ... .. //depot/projects/trustedbsd/capabilities/src/tools/cap/sandbox_world/sandbox_world.c#2 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/tools/cap/sandbox_world/sandbox_world.c#2 (text+ko) ==== @@ -61,7 +61,6 @@ struct iovec iov; size_t len; char ch; - int i; if (argc != 1) errx(-1, "usage: sandbox_world"); @@ -70,7 +69,7 @@ LCH_PERMIT_STDOUT, &lcsp) < 0) err(-1, "lch_start %s", argv[1]); - ch = i; + ch = 'X'; iov.iov_base = &ch; iov.iov_len = sizeof(ch); if (lch_rpc(lcsp, 0, &iov, 1, &iov, 1, &len) < 0) @@ -78,8 +77,8 @@ if (len != sizeof(ch)) errx(-1, "lch_rpc returned size %d not %d", len, sizeof(ch)); - if (ch != i) - errx(-1, "lch_recv: expected %d and got %d", i, ch); + if (ch != 'X') + errx(-1, "lch_recv: expected %d and got %d", 'X', ch); lch_stop(lcsp); }help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907282221.n6SMLRbO049017>
