Module Name: src
Committed By: pooka
Date: Tue Oct 13 22:00:31 UTC 2009
Modified Files:
src/include: util.h
src/lib/libutil: opendisk.c
Log Message:
In a furious blaze of *facepalm* / "what was i thinking?", fix the
open routine function pointer prototype of opendisk1() to match
the prototype of open().
To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/include/util.h
cvs rdiff -u -r1.11 -r1.12 src/lib/libutil/opendisk.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/include/util.h
diff -u src/include/util.h:1.52 src/include/util.h:1.53
--- src/include/util.h:1.52 Tue Sep 8 21:34:57 2009
+++ src/include/util.h Tue Oct 13 22:00:31 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: util.h,v 1.52 2009/09/08 21:34:57 pooka Exp $ */
+/* $NetBSD: util.h,v 1.53 2009/10/13 22:00:31 pooka Exp $ */
/*-
* Copyright (c) 1995
@@ -83,7 +83,7 @@
void logwtmpx(const char *, const char *, const char *, int, int);
int opendisk(const char *, int, char *, size_t, int);
int opendisk1(const char *, int, char *, size_t, int,
- int (*)(const char *, int, mode_t));
+ int (*)(const char *, int, ...));
int openpty(int *, int *, char *, struct termios *,
struct winsize *);
#ifndef __LIBC12_SOURCE__
Index: src/lib/libutil/opendisk.c
diff -u src/lib/libutil/opendisk.c:1.11 src/lib/libutil/opendisk.c:1.12
--- src/lib/libutil/opendisk.c:1.11 Tue Sep 8 21:34:57 2009
+++ src/lib/libutil/opendisk.c Tue Oct 13 22:00:31 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: opendisk.c,v 1.11 2009/09/08 21:34:57 pooka Exp $ */
+/* $NetBSD: opendisk.c,v 1.12 2009/10/13 22:00:31 pooka Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: opendisk.c,v 1.11 2009/09/08 21:34:57 pooka Exp $");
+__RCSID("$NetBSD: opendisk.c,v 1.12 2009/10/13 22:00:31 pooka Exp $");
#endif
#include <sys/param.h>
@@ -46,7 +46,7 @@
static int
__opendisk(const char *path, int flags, char *buf, size_t buflen, int iscooked,
- int (*ofn)(const char *, int, mode_t))
+ int (*ofn)(const char *, int, ...))
{
int f, rawpart;
@@ -92,12 +92,12 @@
opendisk(const char *path, int flags, char *buf, size_t buflen, int iscooked)
{
- return __opendisk(path, flags, buf, buflen, iscooked, (void *)open);
+ return __opendisk(path, flags, buf, buflen, iscooked, open);
}
int
opendisk1(const char *path, int flags, char *buf, size_t buflen, int iscooked,
- int (*ofn)(const char *, int, mode_t))
+ int (*ofn)(const char *, int, ...))
{
return __opendisk(path, flags, buf, buflen, iscooked, ofn);