Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k/dev Shut up gcc -Wall.



details:   https://anonhg.NetBSD.org/src/rev/45fa14d83410
branches:  trunk
changeset: 472718:45fa14d83410
user:      minoura <minoura%NetBSD.org@localhost>
date:      Wed May 05 14:31:16 1999 +0000

description:
Shut up gcc -Wall.

diffstat:

 sys/arch/x68k/dev/grf.c |   3 ++-
 sys/arch/x68k/dev/ite.c |   3 +--
 sys/arch/x68k/dev/par.c |  14 ++++++--------
 3 files changed, 9 insertions(+), 11 deletions(-)

diffs (97 lines):

diff -r 915f4d76817d -r 45fa14d83410 sys/arch/x68k/dev/grf.c
--- a/sys/arch/x68k/dev/grf.c   Wed May 05 13:46:20 1999 +0000
+++ b/sys/arch/x68k/dev/grf.c   Wed May 05 14:31:16 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf.c,v 1.13 1999/03/24 05:51:17 mrg Exp $     */
+/*     $NetBSD: grf.c,v 1.14 1999/05/05 14:31:16 minoura Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -80,6 +80,7 @@
 #include <vm/vm_pager.h>
 
 #include <uvm/uvm_extern.h>
+#include <uvm/uvm_map.h>
 
 #include <miscfs/specfs/specdev.h>
 
diff -r 915f4d76817d -r 45fa14d83410 sys/arch/x68k/dev/ite.c
--- a/sys/arch/x68k/dev/ite.c   Wed May 05 13:46:20 1999 +0000
+++ b/sys/arch/x68k/dev/ite.c   Wed May 05 14:31:16 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ite.c,v 1.18 1999/05/05 13:41:19 minoura Exp $ */
+/*     $NetBSD: ite.c,v 1.19 1999/05/05 14:31:16 minoura Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -110,7 +110,6 @@
 __inline static void ite_rlf __P((struct ite_softc *));
 static void iteprecheckwrap __P((struct ite_softc *ip));
 static void itecheckwrap __P((struct ite_softc *ip));
-static void repeat_handler __P((void *arg));
 static int ite_argnum __P((struct ite_softc *ip));
 static int ite_zargnum __P((struct ite_softc *ip));
 static void ite_sendstr __P((struct ite_softc *ip, char *str));
diff -r 915f4d76817d -r 45fa14d83410 sys/arch/x68k/dev/par.c
--- a/sys/arch/x68k/dev/par.c   Wed May 05 13:46:20 1999 +0000
+++ b/sys/arch/x68k/dev/par.c   Wed May 05 14:31:16 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: par.c,v 1.7 1998/08/07 16:16:36 minoura Exp $  */
+/*     $NetBSD: par.c,v 1.8 1999/05/05 14:31:16 minoura Exp $  */
 
 /*
  * Copyright (c) 1982, 1990 The Regents of the University of California.
@@ -148,8 +148,6 @@
 {
        register int unit = UNIT(dev);
        register struct par_softc *sc = par_cd.cd_devs[unit];
-       int s;
-       char mask;
        
        if (unit >= NPAR || !(sc->sc_flags & PARF_ALIVE))
                return(ENXIO);
@@ -226,7 +224,7 @@
        
 #ifdef DEBUG
        if (pardebug & PDB_FOLLOW)
-               printf("parwrite(%x, %x)\n", dev, uio);
+               printf("parwrite(%x, %p)\n", dev, uio);
 #endif
        return (parrw(dev, uio));
 }
@@ -240,7 +238,7 @@
        register struct par_softc *sc = par_cd.cd_devs[unit];
        register int s, len, cnt;
        register char *cp;
-       int error = 0, gotdata = 0;
+       int error = 0;
        int buflen;
        char *buf;
        
@@ -312,7 +310,7 @@
                if (sc->sc_delay > 0) {
                        sc->sc_flags |= PARF_DELAY;
                        timeout(parstart, (void *) unit, sc->sc_delay);
-                       error = tsleep(sc, PCATCH|PZERO-1, "par-cdelay", 0);
+                       error = tsleep(sc, PCATCH|(PZERO-1), "par-cdelay", 0);
                        if (error) {
                                splx(s);
                                break;
@@ -489,7 +487,7 @@
                        /* it's quite important that a parallel putc can be
                           interrupted, given the possibility to lock a printer
                           in an offline condition.. */
-                       if (error = tsleep (parintr, PCATCH|PZERO-1, "parsendch", 0)) {
+                       if ((error = tsleep (parintr, PCATCH|(PZERO-1), "parsendch", 0))) {
 #ifdef DEBUG
                                if (pardebug & PDB_INTERRUPT)
                                        printf ("parsendch interrupted, error = %d\n", error);
@@ -529,7 +527,7 @@
        int err, orig_len = len;
        
        for (; len; len--, buf++)
-               if (err = parsendch (*buf))
+               if ((err = parsendch (*buf)))
                        return err < 0 ? -EINTR : -err;
        
        /* either all or nothing.. */



Home | Main Index | Thread Index | Old Index