Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/envstat Don't need prog_ioctl here, it's a leftover...



details:   https://anonhg.NetBSD.org/src/rev/94bb78a0a132
branches:  trunk
changeset: 759724:94bb78a0a132
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Dec 15 15:07:54 2010 +0000

description:
Don't need prog_ioctl here, it's a leftover of the previous approach.

pointed out by Paul Goyette

diffstat:

 usr.sbin/envstat/envstat_hostops.c |  5 ++---
 usr.sbin/envstat/envstat_rumpops.c |  5 ++---
 usr.sbin/envstat/prog_ops.h        |  4 +---
 3 files changed, 5 insertions(+), 9 deletions(-)

diffs (71 lines):

diff -r ce2c99eb0de6 -r 94bb78a0a132 usr.sbin/envstat/envstat_hostops.c
--- a/usr.sbin/envstat/envstat_hostops.c        Wed Dec 15 14:45:47 2010 +0000
+++ b/usr.sbin/envstat/envstat_hostops.c        Wed Dec 15 15:07:54 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: envstat_hostops.c,v 1.1 2010/12/13 18:00:38 pooka Exp $        */
+/*     $NetBSD: envstat_hostops.c,v 1.2 2010/12/15 15:07:54 pooka Exp $        */
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: envstat_hostops.c,v 1.1 2010/12/13 18:00:38 pooka Exp $");
+__RCSID("$NetBSD: envstat_hostops.c,v 1.2 2010/12/15 15:07:54 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -42,5 +42,4 @@
 const struct prog_ops prog_ops = {
        .op_open = open,
        .op_close = close,
-       .op_ioctl = ioctl,
 };
diff -r ce2c99eb0de6 -r 94bb78a0a132 usr.sbin/envstat/envstat_rumpops.c
--- a/usr.sbin/envstat/envstat_rumpops.c        Wed Dec 15 14:45:47 2010 +0000
+++ b/usr.sbin/envstat/envstat_rumpops.c        Wed Dec 15 15:07:54 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: envstat_rumpops.c,v 1.1 2010/12/13 18:00:38 pooka Exp $        */
+/*     $NetBSD: envstat_rumpops.c,v 1.2 2010/12/15 15:07:54 pooka Exp $        */
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: envstat_rumpops.c,v 1.1 2010/12/13 18:00:38 pooka Exp $");
+__RCSID("$NetBSD: envstat_rumpops.c,v 1.2 2010/12/15 15:07:54 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -44,5 +44,4 @@
 
        .op_open =      rump_sys_open,
        .op_close =     rump_sys_close,
-       .op_ioctl =     rump_sys_ioctl,
 };
diff -r ce2c99eb0de6 -r 94bb78a0a132 usr.sbin/envstat/prog_ops.h
--- a/usr.sbin/envstat/prog_ops.h       Wed Dec 15 14:45:47 2010 +0000
+++ b/usr.sbin/envstat/prog_ops.h       Wed Dec 15 15:07:54 2010 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: prog_ops.h,v 1.1 2010/12/13 18:00:38 pooka Exp $      */
+/*      $NetBSD: prog_ops.h,v 1.2 2010/12/15 15:07:54 pooka Exp $      */
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -36,13 +36,11 @@
 
        int (*op_open)(const char *, int, ...);
        int (*op_close)(int);
-       int (*op_ioctl)(int, unsigned long, ...);
 };
 extern const struct prog_ops prog_ops;
 
 #define prog_init prog_ops.op_init
 #define prog_open prog_ops.op_open
 #define prog_close prog_ops.op_close
-#define prog_ioctl prog_ops.op_ioctl
 
 #endif /* _PROG_OPS_H_ */



Home | Main Index | Thread Index | Old Index