summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 5cf62c1..374b518 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -194,6 +194,8 @@ pub mod ioctl
.map(|_| ())
}
+ /* This should perhaps return unit as the kernel supposedly always returns
+ the constant ``KB_101``. */
pub fn kdgkbtype<F: AsRawFd>(fd: &F) -> Result<libc::c_char>
{
let mut kb: libc::c_char = 0;
@@ -202,6 +204,8 @@ pub mod ioctl
ioctl(fd.as_raw_fd(), KDGKBTYPE, &mut kb as *mut _)
})?;
+ //assert_eq(kb, KB_101); /* XXX */
+
Ok(kb)
}
}