PERFORCE change 166704 for review
Robert Watson
rwatson at FreeBSD.org
Tue Jul 28 22:21:28 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=166704
Change 166704 by rwatson at 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);
}
More information about the p4-projects
mailing list