From f4963a52e96230374826137cce44813c94853e6f Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Mon, 16 Dec 2013 23:55:12 +0100 Subject: device: qualify pointers whose dereferenced values are constant with const --- device/subrs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'device/subrs.c') diff --git a/device/subrs.c b/device/subrs.c index 0a7d690..7e6e30d 100644 --- a/device/subrs.c +++ b/device/subrs.c @@ -41,8 +41,8 @@ * Print out disk name and block number for hard disk errors. */ void harderr(ior, cp) - io_req_t ior; - char * cp; + const io_req_t ior; + const char * cp; { printf("%s%d%c: hard error sn%d ", cp, @@ -56,7 +56,7 @@ void harderr(ior, cp) */ char * ether_sprintf(ap) - u_char *ap; + const u_char *ap; { int i; static char etherbuf[18]; -- cgit v1.2.3