bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 02/10] Match function types with `struct tty' member functions


From: Guillem Jover
Subject: [PATCH 02/10] Match function types with `struct tty' member functions
Date: Thu, 17 Dec 2009 14:39:22 +0100

From: Guillem Jover <guillem@debian.org>

        * i386/i386at/com.c (comstart): Change return type to `void'.
        * i386/i386at/lpr.c (lprstop): Likewise.
---
 i386/i386at/com.c |   12 ++++++------
 i386/i386at/lpr.c |    9 +++++----
 2 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/i386/i386at/com.c b/i386/i386at/com.c
index bd5b989..602e1ff 100644
--- a/i386/i386at/com.c
+++ b/i386/i386at/com.c
@@ -46,7 +46,8 @@
 
 #include <device/cons.h>
 
-int comprobe(), comstart(), commctl();
+int comprobe(), commctl();
+void comstart(struct tty *);
 void comstop(), comattach(), comintr();
 static void comparam();
 int comgetstat(), comsetstat();
@@ -609,7 +610,7 @@ comparm(int unit, int baud, int intr, int mode, int modem)
 
 int comst_1, comst_2, comst_3, comst_4, comst_5 = 14;
 
-int
+void
 comstart(tp)
 struct tty *tp;
 {
@@ -618,7 +619,7 @@ struct tty *tp;
 
        if (tp->t_state & (TS_TIMEOUT|TS_TTSTOP|TS_BUSY)) {
 comst_1++;
-               return(0);
+               return;
        }
        if ((!queue_empty(&tp->t_delayed_write)) &&
            (tp->t_outq.c_cc <= TTLOWAT(tp))) {
@@ -627,7 +628,7 @@ comst_2++;
        }
        if (!tp->t_outq.c_cc) {
 comst_3++;
-               return(0);
+               return;
        }
 
 #if 0
@@ -651,12 +652,11 @@ comst_4++;
            timeout(ttrstrt, (char *)tp, (nch & 0x7f) + 6);
            tp->t_state |= TS_TIMEOUT;
 comst_4++;
-           return(0);
+           return;
        }
        outb(TXRX((int)tp->t_addr), nch);
        tp->t_state |= TS_BUSY;
 #endif
-       return(0);
 }
 
 /* Check for stuck xmitters */
diff --git a/i386/i386at/lpr.c b/i386/i386at/lpr.c
index d4f82b1..e6debab 100644
--- a/i386/i386at/lpr.c
+++ b/i386/i386at/lpr.c
@@ -64,11 +64,12 @@
  * Driver information for auto-configuration stuff.
  */
 
-int    lprprobe(), lprstop();
+int    lprprobe();
+void   lprstop();
 void   lprintr(), lprstart();
 void   lprattach(struct bus_device *);
 #ifdef MACH_KERNEL
-int lprstop(), lprgetstat(), lprsetstat();
+int lprgetstat(), lprsetstat();
 #endif /* MACH_KERNEL */
 
 struct bus_device *lprinfo[NLPR];      /* ??? */
@@ -370,7 +371,7 @@ struct tty *tp;
 }
 
 #ifdef MACH_KERNEL
-int
+void
 lprstop(tp, flags)
 register struct tty *tp;
 int    flags;
@@ -379,7 +380,7 @@ int flags;
                tp->t_state |= TS_FLUSH;
 }
 #else  /* MACH_KERNEL */
-int lprstop(tp, flag)
+void lprstop(tp, flag)
 struct tty *tp;
 {
        int s = spltty();
-- 
1.6.5.4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]