about summary refs log tree commit diff
path: root/src/rt/rust_util.h
diff options
context:
space:
mode:
authorJon Morton <jonanin@gmail.com>2012-04-01 21:14:16 -0500
committerJon Morton <jonanin@gmail.com>2012-04-01 21:14:16 -0500
commit413994ea3eed976a6fe97f3d6cfeb0c2f453e77f (patch)
tree653313277b5712ea63d7e381ae74397f62f435bb /src/rt/rust_util.h
parent9ec21933f1b730862f85c4dc6a4e46359e84a865 (diff)
downloadrust-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.h9
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
         }