Source-Changes-HG archive

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

[src/trunk]: src fix prototypes of function pointers to varargs syscalls



details:   https://anonhg.NetBSD.org/src/rev/a60ebace2af1
branches:  trunk
changeset: 748107:a60ebace2af1
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Oct 13 22:04:31 2009 +0000

description:
fix prototypes of function pointers to varargs syscalls

diffstat:

 dist/smbfs/include/smb_kernelops.h |  6 +++---
 dist/smbfs/lib/smb/smb_kernelops.c |  8 ++++----
 sbin/cgdconfig/cgd_kernelops.c     |  8 ++++----
 sbin/cgdconfig/cgd_kernelops.h     |  6 +++---
 sbin/fsck_lfs/kernelops.c          |  8 ++++----
 sbin/fsck_lfs/kernelops.h          |  4 ++--
 6 files changed, 20 insertions(+), 20 deletions(-)

diffs (142 lines):

diff -r 80f8b179127f -r a60ebace2af1 dist/smbfs/include/smb_kernelops.h
--- a/dist/smbfs/include/smb_kernelops.h        Tue Oct 13 22:00:31 2009 +0000
+++ b/dist/smbfs/include/smb_kernelops.h        Tue Oct 13 22:04:31 2009 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: smb_kernelops.h,v 1.1 2009/09/06 18:38:17 pooka Exp $        */
+/*      $NetBSD: smb_kernelops.h,v 1.2 2009/10/13 22:04:31 pooka Exp $        */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -35,8 +35,8 @@
 #include <fcntl.h>
 
 struct smb_kernelops {
-       int (*ko_open)(const char *, int, mode_t);
-       int (*ko_ioctl)(int, unsigned long, void *);
+       int (*ko_open)(const char *, int, ...);
+       int (*ko_ioctl)(int, unsigned long, ...);
        int (*ko_close)(int);
 
        int (*ko_socket)(int, int, int);
diff -r 80f8b179127f -r a60ebace2af1 dist/smbfs/lib/smb/smb_kernelops.c
--- a/dist/smbfs/lib/smb/smb_kernelops.c        Tue Oct 13 22:00:31 2009 +0000
+++ b/dist/smbfs/lib/smb/smb_kernelops.c        Tue Oct 13 22:04:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smb_kernelops.c,v 1.1 2009/09/06 18:38:17 pooka Exp $  */
+/*     $NetBSD: smb_kernelops.c,v 1.2 2009/10/13 22:04:31 pooka Exp $  */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: smb_kernelops.c,v 1.1 2009/09/06 18:38:17 pooka Exp $");
+__RCSID("$NetBSD: smb_kernelops.c,v 1.2 2009/10/13 22:04:31 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -41,8 +41,8 @@
 #include "smb_kernelops.h"
 
 const struct smb_kernelops smb_kops = {
-       .ko_open = (void *)open, /* XXX: rump_syscalls prototype */
-       .ko_ioctl = (void *)ioctl,
+       .ko_open = open,
+       .ko_ioctl = ioctl,
        .ko_close = close,
 
        .ko_socket = socket,
diff -r 80f8b179127f -r a60ebace2af1 sbin/cgdconfig/cgd_kernelops.c
--- a/sbin/cgdconfig/cgd_kernelops.c    Tue Oct 13 22:00:31 2009 +0000
+++ b/sbin/cgdconfig/cgd_kernelops.c    Tue Oct 13 22:04:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgd_kernelops.c,v 1.1 2009/09/08 21:36:35 pooka Exp $  */
+/*     $NetBSD: cgd_kernelops.c,v 1.2 2009/10/13 22:04:31 pooka Exp $  */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: cgd_kernelops.c,v 1.1 2009/09/08 21:36:35 pooka Exp $");
+__RCSID("$NetBSD: cgd_kernelops.c,v 1.2 2009/10/13 22:04:31 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -40,8 +40,8 @@
 #include "cgd_kernelops.h"
 
 const struct cgd_kernelops cgd_kops = {
-       .ko_open = (void *)open, /* XXX: rump_syscalls prototype */
-       .ko_ioctl = (void *)ioctl,
+       .ko_open = open,
+       .ko_ioctl = ioctl,
        .ko_pread = pread,
        .ko_close = close,
 };
diff -r 80f8b179127f -r a60ebace2af1 sbin/cgdconfig/cgd_kernelops.h
--- a/sbin/cgdconfig/cgd_kernelops.h    Tue Oct 13 22:00:31 2009 +0000
+++ b/sbin/cgdconfig/cgd_kernelops.h    Tue Oct 13 22:04:31 2009 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: cgd_kernelops.h,v 1.2 2009/09/10 09:10:29 pooka Exp $ */
+/*      $NetBSD: cgd_kernelops.h,v 1.3 2009/10/13 22:04:31 pooka Exp $ */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -35,8 +35,8 @@
 #include <fcntl.h>
 
 struct cgd_kernelops {
-       int (*ko_open)(const char *, int, mode_t);
-       int (*ko_ioctl)(int, unsigned long, void *);
+       int (*ko_open)(const char *, int, ...);
+       int (*ko_ioctl)(int, unsigned long, ...);
        int (*ko_close)(int);
        ssize_t (*ko_pread)(int, void *, size_t, off_t);
 };
diff -r 80f8b179127f -r a60ebace2af1 sbin/fsck_lfs/kernelops.c
--- a/sbin/fsck_lfs/kernelops.c Tue Oct 13 22:00:31 2009 +0000
+++ b/sbin/fsck_lfs/kernelops.c Tue Oct 13 22:04:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kernelops.c,v 1.2 2009/08/06 00:55:08 pooka Exp $      */
+/*     $NetBSD: kernelops.c,v 1.3 2009/10/13 22:04:31 pooka Exp $      */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: kernelops.c,v 1.2 2009/08/06 00:55:08 pooka Exp $");
+__RCSID("$NetBSD: kernelops.c,v 1.3 2009/10/13 22:04:31 pooka Exp $");
 #endif /* !lint */
 
 /*
@@ -68,8 +68,8 @@
 #else
 
 const struct kernelops kops = {
-       .ko_open = (void *)open, /* XXX: fix rump_syscalls */
-       .ko_fcntl = (void *)fcntl,
+       .ko_open = open,
+       .ko_fcntl = fcntl,
        .ko_statvfs = statvfs1,
        .ko_fhopen = fhopen,
        .ko_close = close,
diff -r 80f8b179127f -r a60ebace2af1 sbin/fsck_lfs/kernelops.h
--- a/sbin/fsck_lfs/kernelops.h Tue Oct 13 22:00:31 2009 +0000
+++ b/sbin/fsck_lfs/kernelops.h Tue Oct 13 22:04:31 2009 +0000
@@ -8,9 +8,9 @@
 #include <unistd.h>
 
 struct kernelops {
-       int (*ko_open)(const char *, int, mode_t);
+       int (*ko_open)(const char *, int, ...);
        int (*ko_statvfs)(const char *, struct statvfs *, int);
-       int (*ko_fcntl)(int, int, void *);
+       int (*ko_fcntl)(int, int, ...);
        int (*ko_fhopen)(const void *, size_t, int);
        int (*ko_close)(int);
 



Home | Main Index | Thread Index | Old Index