diff options
| author | Jon Morton <jonanin@gmail.com> | 2012-04-01 21:14:16 -0500 |
|---|---|---|
| committer | Jon Morton <jonanin@gmail.com> | 2012-04-01 21:14:16 -0500 |
| commit | 413994ea3eed976a6fe97f3d6cfeb0c2f453e77f (patch) | |
| tree | 653313277b5712ea63d7e381ae74397f62f435bb /src/rt/rust_util.h | |
| parent | 9ec21933f1b730862f85c4dc6a4e46359e84a865 (diff) | |
| download | rust-413994ea3eed976a6fe97f3d6cfeb0c2f453e77f.tar.gz rust-413994ea3eed976a6fe97f3d6cfeb0c2f453e77f.zip | |
replace assertion macros with plain asserts
Diffstat (limited to 'src/rt/rust_util.h')
| -rw-r--r-- | src/rt/rust_util.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rt/rust_util.h b/src/rt/rust_util.h index 2c4eb8cd174..0af16978390 100644 --- a/src/rt/rust_util.h +++ b/src/rt/rust_util.h @@ -61,11 +61,10 @@ isaac_init(rust_kernel *kernel, randctx *rctx) CryptReleaseContext(hProv, 0)); #else int fd = open("/dev/urandom", O_RDONLY); - I(kernel, fd > 0); - I(kernel, - read(fd, (void*) &rctx->randrsl, sizeof(rctx->randrsl)) - == sizeof(rctx->randrsl)); - I(kernel, close(fd) == 0); + assert(fd > 0); + assert(read(fd, (void*) &rctx->randrsl, sizeof(rctx->randrsl)) + == sizeof(rctx->randrsl)); + assert(close(fd) == 0); #endif } |
