summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uscanner.c
diff options
context:
space:
mode:
authorMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-05 08:43:57 +0000
committerMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-05 08:43:57 +0000
commit440c92fbdde0969f281d9daf32cbafdb1b057de9 (patch)
treec79c753268946bdc81f4af8df3e6d8695c7fb7ac /sys/dev/usb/uscanner.c
parent3033997e9c562ce3ee8b9bb55e4ecc77e6b90a56 (diff)
Remove the "Static" declaration of many functions. It was defined to be empty
and it was not consistently used. It was confusing as it suggested these functions were static, which they were not. discussed with dlg and jsg, ok jsg.
Diffstat (limited to 'sys/dev/usb/uscanner.c')
-rw-r--r--sys/dev/usb/uscanner.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/usb/uscanner.c b/sys/dev/usb/uscanner.c
index 31cfbd287e7..0187cde656b 100644
--- a/sys/dev/usb/uscanner.c
+++ b/sys/dev/usb/uscanner.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uscanner.c,v 1.25 2007/05/31 18:20:22 mbalmer Exp $ */
+/* $OpenBSD: uscanner.c,v 1.26 2007/06/05 08:43:56 mbalmer Exp $ */
/* $NetBSD: uscanner.c,v 1.40 2003/01/27 00:32:44 wiz Exp $ */
/*
@@ -232,9 +232,9 @@ struct uscanner_softc {
u_char sc_dying;
};
-Static int uscanner_do_read(struct uscanner_softc *, struct uio *, int);
-Static int uscanner_do_write(struct uscanner_softc *, struct uio *, int);
-Static void uscanner_do_close(struct uscanner_softc *);
+int uscanner_do_read(struct uscanner_softc *, struct uio *, int);
+int uscanner_do_write(struct uscanner_softc *, struct uio *, int);
+void uscanner_do_close(struct uscanner_softc *);
#define USCANNERUNIT(n) (minor(n))
@@ -445,7 +445,7 @@ uscanner_do_close(struct uscanner_softc *sc)
sc->sc_state &= ~USCANNER_OPEN;
}
-Static int
+int
uscanner_do_read(struct uscanner_softc *sc, struct uio *uio, int flag)
{
u_int32_t n, tn;
@@ -500,7 +500,7 @@ uscannerread(dev_t dev, struct uio *uio, int flag)
return (error);
}
-Static int
+int
uscanner_do_write(struct uscanner_softc *sc, struct uio *uio, int flag)
{
u_int32_t n;
@@ -632,10 +632,10 @@ uscannerioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, usb_proc_ptr p)
return (EINVAL);
}
-Static void filt_uscannerdetach(struct knote *);
+void filt_uscannerdetach(struct knote *);
int uscannerkqfilter(dev_t, struct knote *);
-Static void
+void
filt_uscannerdetach(struct knote *kn)
{
struct uscanner_softc *sc = (void *)kn->kn_hook;
@@ -643,7 +643,7 @@ filt_uscannerdetach(struct knote *kn)
SLIST_REMOVE(&sc->sc_selq.sel_klist, kn, knote, kn_selnext);
}
-Static struct filterops uscanner_seltrue_filtops =
+struct filterops uscanner_seltrue_filtops =
{ 1, NULL, filt_uscannerdetach, filt_seltrue };
int