From f8cf25d76c1fa1bcb1f5f4a768760d2ea4613675 Mon Sep 17 00:00:00 2001 From: Peter Limkilde Svendsen Date: Sat, 11 May 2019 11:44:36 +0200 Subject: [PATCH] Fix inaccurate comment --- src/header/stdlib/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/header/stdlib/mod.rs b/src/header/stdlib/mod.rs index 149d4dc020..5944ad5bc8 100644 --- a/src/header/stdlib/mod.rs +++ b/src/header/stdlib/mod.rs @@ -1010,8 +1010,8 @@ pub unsafe extern "C" fn unsetenv(key: *const c_char) -> c_int { #[no_mangle] pub unsafe extern "C" fn valloc(size: size_t) -> *mut c_void { - /* _SC_PAGESIZE is a c_long and may in principle not convert - * correctly to a size_t. */ + /* sysconf(_SC_PAGESIZE) is a c_long and may in principle not + * convert correctly to a size_t. */ match size_t::try_from(sysconf(_SC_PAGESIZE)) { Ok(page_size) => { /* valloc() is not supposed to be able to set errno to