From 9d2ed13a9b38def813d3990d52a09ea1d7af7315 Mon Sep 17 00:00:00 2001 From: Hasso Tepper Date: Fri, 17 Aug 2007 06:40:19 +0000 Subject: [PATCH] Make functions static. --- sys/dev/usbmisc/uark/uark.c | 23 +++++++++++------------ sys/dev/usbmisc/uslcom/uslcom.c | 33 +++++++++++++++++---------------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/sys/dev/usbmisc/uark/uark.c b/sys/dev/usbmisc/uark/uark.c index 1ceea551af..5a89f64595 100644 --- a/sys/dev/usbmisc/uark/uark.c +++ b/sys/dev/usbmisc/uark/uark.c @@ -1,4 +1,4 @@ -/* $DragonFly: src/sys/dev/usbmisc/uark/uark.c,v 1.1 2007/08/14 22:28:11 hasso Exp $ */ +/* $DragonFly: src/sys/dev/usbmisc/uark/uark.c,v 1.2 2007/08/17 06:40:19 hasso Exp $ */ /* $OpenBSD: uark.c,v 1.9 2007/06/13 06:25:03 mbalmer Exp $ */ /* @@ -68,12 +68,11 @@ struct uark_softc { u_char sc_lsr; }; -void uark_get_status(void *, int portno, u_char *lsr, u_char *msr); -void uark_set(void *, int, int, int); -int uark_param(void *, int, struct termios *); -int uark_open(void *sc, int); -void uark_break(void *, int, int); -int uark_cmd(struct uark_softc *, uint16_t, uint16_t); +static void uark_get_status(void *, int portno, u_char *lsr, u_char *msr); +static void uark_set(void *, int, int, int); +static int uark_param(void *, int, struct termios *); +static void uark_break(void *, int, int); +static int uark_cmd(struct uark_softc *, uint16_t, uint16_t); struct ucom_callback uark_callback = { uark_get_status, @@ -250,7 +249,7 @@ uark_activate(struct device *self, enum devact act) } #endif -void +static void uark_set(void *vsc, int portno, int reg, int onoff) { struct uark_softc *sc = vsc; @@ -266,7 +265,7 @@ uark_set(void *vsc, int portno, int reg, int onoff) } } -int +static int uark_param(void *vsc, int portno, struct termios *t) { struct uark_softc *sc = (struct uark_softc *)vsc; @@ -338,7 +337,7 @@ uark_param(void *vsc, int portno, struct termios *t) return (0); } -void +static void uark_get_status(void *vsc, int portno, u_char *lsr, u_char *msr) { struct uark_softc *sc = vsc; @@ -349,7 +348,7 @@ uark_get_status(void *vsc, int portno, u_char *lsr, u_char *msr) *lsr = sc->sc_lsr; } -void +static void uark_break(void *vsc, int portno, int onoff) { #ifdef UARK_DEBUG @@ -366,7 +365,7 @@ uark_break(void *vsc, int portno, int onoff) #endif } -int +static int uark_cmd(struct uark_softc *sc, uint16_t index, uint16_t value) { usb_device_request_t req; diff --git a/sys/dev/usbmisc/uslcom/uslcom.c b/sys/dev/usbmisc/uslcom/uslcom.c index a70443c27e..a52c545f26 100644 --- a/sys/dev/usbmisc/uslcom/uslcom.c +++ b/sys/dev/usbmisc/uslcom/uslcom.c @@ -1,4 +1,4 @@ -/* $DragonFly: src/sys/dev/usbmisc/uslcom/uslcom.c,v 1.3 2007/08/15 06:47:26 hasso Exp $ */ +/* $DragonFly: src/sys/dev/usbmisc/uslcom/uslcom.c,v 1.4 2007/08/17 06:40:19 hasso Exp $ */ /* $OpenBSD: uslcom.c,v 1.12 2007/06/13 06:25:03 mbalmer Exp $ */ /* @@ -89,14 +89,15 @@ struct uslcom_softc { u_char sc_lsr; }; -void uslcom_get_status(void *, int portno, u_char *lsr, u_char *msr); -void uslcom_set(void *, int, int, int); -int uslcom_param(void *, int, struct termios *); -int uslcom_open(void *sc, int portno); -void uslcom_close(void *, int); -void uslcom_break(void *sc, int portno, int onoff); -void uslcom_set_flow_ctrl(struct uslcom_softc *sc, tcflag_t cflag, - tcflag_t iflag); +static void uslcom_get_status(void *, int portno, u_char *lsr, + u_char *msr); +static void uslcom_set(void *, int, int, int); +static int uslcom_param(void *, int, struct termios *); +static int uslcom_open(void *sc, int portno); +static void uslcom_close(void *, int); +static void uslcom_break(void *sc, int portno, int onoff); +static void uslcom_set_flow_ctrl(struct uslcom_softc *sc, tcflag_t cflag, + tcflag_t iflag); struct ucom_callback uslcom_callback = { uslcom_get_status, @@ -293,7 +294,7 @@ uslcom_activate(struct device *self, enum devact act) } #endif -int +static int uslcom_open(void *vsc, int portno) { struct uslcom_softc *sc = vsc; @@ -315,7 +316,7 @@ uslcom_open(void *vsc, int portno) return (0); } -void +static void uslcom_close(void *vsc, int portno) { struct uslcom_softc *sc = vsc; @@ -332,7 +333,7 @@ uslcom_close(void *vsc, int portno) usbd_do_request(sc->sc_ucom.sc_udev, &req, NULL); } -void +static void uslcom_set(void *vsc, int portno, int reg, int onoff) { struct uslcom_softc *sc = vsc; @@ -362,7 +363,7 @@ uslcom_set(void *vsc, int portno, int reg, int onoff) usbd_do_request(sc->sc_ucom.sc_udev, &req, NULL); } -int +static int uslcom_param(void *vsc, int portno, struct termios *t) { struct uslcom_softc *sc = (struct uslcom_softc *)vsc; @@ -436,7 +437,7 @@ uslcom_param(void *vsc, int portno, struct termios *t) return (0); } -void +static void uslcom_get_status(void *vsc, int portno, u_char *lsr, u_char *msr) { struct uslcom_softc *sc = vsc; @@ -447,7 +448,7 @@ uslcom_get_status(void *vsc, int portno, u_char *lsr, u_char *msr) *lsr = sc->sc_lsr; } -void +static void uslcom_break(void *vsc, int portno, int onoff) { struct uslcom_softc *sc = vsc; @@ -462,7 +463,7 @@ uslcom_break(void *vsc, int portno, int onoff) usbd_do_request(sc->sc_ucom.sc_udev, &req, NULL); } -void +static void uslcom_set_flow_ctrl(struct uslcom_softc *sc, tcflag_t cflag, tcflag_t iflag) { uint8_t modemdata[16]; -- 2.11.4.GIT