summaryrefslogtreecommitdiff
path: root/device/subrs.c
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-16 23:55:12 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-17 19:02:20 +0100
commitf4963a52e96230374826137cce44813c94853e6f (patch)
treef2cb67804faa33f4a735b9781f5bf77a830782c4 /device/subrs.c
parent68bbdd1e18a87afede6cbdffdb8c7078ed3fa835 (diff)
device: qualify pointers whose dereferenced values are constant with const
Diffstat (limited to 'device/subrs.c')
-rw-r--r--device/subrs.c6
1 files changed, 3 insertions, 3 deletions
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];