Source-Changes-HG archive

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

[src/trunk]: src/sbin/raidctl ioctl(2) commands are u_long, so do_meter() mus...



details:   https://anonhg.NetBSD.org/src/rev/7d9cb9846489
branches:  trunk
changeset: 486469:7d9cb9846489
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue May 23 00:33:13 2000 +0000

description:
ioctl(2) commands are u_long, so do_meter() must take the same.

diffstat:

 sbin/raidctl/raidctl.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (57 lines):

diff -r bb179508f293 -r 7d9cb9846489 sbin/raidctl/raidctl.c
--- a/sbin/raidctl/raidctl.c    Mon May 22 22:03:32 2000 +0000
+++ b/sbin/raidctl/raidctl.c    Tue May 23 00:33:13 2000 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: raidctl.c,v 1.16 2000/04/14 06:03:40 simonb Exp $   */
+/*      $NetBSD: raidctl.c,v 1.17 2000/05/23 00:33:13 thorpej Exp $   */
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -66,7 +66,7 @@
 extern  char *__progname;
 
 int     main __P((int, char *[]));
-void do_ioctl __P((int, unsigned long, void *, char *));
+void   do_ioctl __P((int, unsigned long, void *, const char *));
 static  void rf_configure __P((int, char*, int));
 static  char *device_status __P((RF_DiskStatus_t));
 static  void rf_get_device_status __P((int));
@@ -82,7 +82,7 @@
 static  void rebuild_in_place __P((int, char *));
 static  void check_status __P((int,int));
 static  void check_parity __P((int,int,char *));
-static  void do_meter __P((int, int));
+static  void do_meter __P((int, u_long));
 static  void get_bar __P((char *, double, int));
 static  void get_time_string __P((char *, int));
 
@@ -331,7 +331,7 @@
        int fd;
        unsigned long command;
        void *arg;
-       char *ioctl_name;
+       const char *ioctl_name;
 {
        if (ioctl(fd, command, arg) < 0) {
                warn("ioctl (%s) failed", ioctl_name);
@@ -796,9 +796,9 @@
 char *tbits = "|/-\\";
 
 static void
-do_meter( fd, option )
+do_meter(fd, option)
        int fd;
-       int option;
+       u_long option;
 {
        int percent_done;
        int last_percent;
@@ -823,7 +823,7 @@
                exit(errno);
        }
        percent_done = 0;
-       do_ioctl( fd, option, &percent_done, "");
+       do_ioctl(fd, option, &percent_done, "");
        last_percent = percent_done;
        start_percent = percent_done;
        last_time = start_time;



Home | Main Index | Thread Index | Old Index