summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-12-08 14:25:53 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-12-08 14:25:53 +0000
commitb6f29caaba4aaeb972675d67ca7c434a5e9b73a7 (patch)
tree5ef85dc039e10e57fb15b250c4ce10f81084cfa6 /sys/scsi
parent52aa3799b1532a9cd3e62ab778110510fca51689 (diff)
-Wcast-qual happiness
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/ss_scanjet.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/scsi/ss_scanjet.c b/sys/scsi/ss_scanjet.c
index a4142aa3c54..5e794d03f47 100644
--- a/sys/scsi/ss_scanjet.c
+++ b/sys/scsi/ss_scanjet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ss_scanjet.c,v 1.13 1996/11/23 06:05:02 kstailey Exp $ */
+/* $OpenBSD: ss_scanjet.c,v 1.14 1996/12/08 14:25:50 niklas Exp $ */
/* $NetBSD: ss_scanjet.c,v 1.6 1996/05/18 22:58:01 christos Exp $ */
/*
@@ -67,7 +67,7 @@ int scanjet_set_window __P((struct ss_softc *, int));
int scanjet_compute_sizes __P((struct ss_softc *, int));
/* Maybe move to libkern? */
__inline static int atoi __P((const char *));
-__inline static char *strchr __P((const char *, char));
+__inline static char *strchr __P((/* const */ char *, char));
/*
@@ -437,7 +437,11 @@ atoi(cp)
__inline static char *
strchr(cp, ch)
- const char *cp;
+ /*
+ * The const was removed to make -Wcast-qual happy. I
+ * don't particularily like this solution but what to do?
+ */
+ /* const */ char *cp;
char ch;
{
while (*cp && *cp != ch) cp++;