Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/iopctl Fix compiler warnings.



details:   https://anonhg.NetBSD.org/src/rev/4c389a9c0e36
branches:  trunk
changeset: 500400:4c389a9c0e36
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Dec 11 13:58:46 2000 +0000

description:
Fix compiler warnings.

diffstat:

 usr.sbin/iopctl/iopctl.c |  26 +++-----------------------
 1 files changed, 3 insertions(+), 23 deletions(-)

diffs (54 lines):

diff -r cdaa64d64687 -r 4c389a9c0e36 usr.sbin/iopctl/iopctl.c
--- a/usr.sbin/iopctl/iopctl.c  Mon Dec 11 13:58:02 2000 +0000
+++ b/usr.sbin/iopctl/iopctl.c  Mon Dec 11 13:58:46 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iopctl.c,v 1.1 2000/12/11 13:48:53 ad Exp $    */
+/*     $NetBSD: iopctl.c,v 1.2 2000/12/11 13:58:46 ad Exp $    */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #ifndef lint
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: iopctl.c,v 1.1 2000/12/11 13:48:53 ad Exp $");
+__RCSID("$NetBSD: iopctl.c,v 1.2 2000/12/11 13:58:46 ad Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -60,6 +60,7 @@
 #include <dev/i2o/iopvar.h>
 
 const char     *class2str(int);
+void   getparam(int, int, void *, int);
 int    main(int, char *[]);
 int    show(const char *, const char *, ...);
 void   i2ostrvis(const char *, int, char *, int);
@@ -193,27 +194,6 @@
        return ("unknown");
 }
 
-const char *
-bustype2str(bustype)
-       int bustype;
-{
-       static char buf[32];
-#ifdef notyet
-       int i;
-#endif
-
-       strcpy(buf, "unknown");
-
-#ifdef notyet  
-       for (i = 0; i < sizeof(i2obustype) / sizeof(i2obustype[0]); i++)
-               if (bustype == i2obustype[i].bustype) {
-                       strcpy(buf, i2obustype[i].caption);
-                       break;
-               }
-#endif                 
-       return (strcat(buf, " bus"));
-}
-
 void
 getparam(int tid, int group, void *pbuf, int pbufsize)
 {



Home | Main Index | Thread Index | Old Index