Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libsa make 'path' argument to cd9660_open 'const cha...
details: https://anonhg.NetBSD.org/src/rev/60eab05a1180
branches: trunk
changeset: 550769:60eab05a1180
user: elric <elric%NetBSD.org@localhost>
date: Thu Aug 21 00:00:52 2003 +0000
description:
make 'path' argument to cd9660_open 'const char *' and fix the fallout.
diffstat:
sys/lib/libsa/cd9660.c | 12 ++++++------
sys/lib/libsa/cd9660.h | 11 ++---------
2 files changed, 8 insertions(+), 15 deletions(-)
diffs (65 lines):
diff -r 4bfc6ad76172 -r 60eab05a1180 sys/lib/libsa/cd9660.c
--- a/sys/lib/libsa/cd9660.c Wed Aug 20 23:37:51 2003 +0000
+++ b/sys/lib/libsa/cd9660.c Thu Aug 21 00:00:52 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cd9660.c,v 1.13 2002/12/30 16:41:53 veego Exp $ */
+/* $NetBSD: cd9660.c,v 1.14 2003/08/21 00:00:52 elric Exp $ */
/*
* Copyright (C) 1996 Wolfgang Solfrank.
@@ -73,12 +73,12 @@
#define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / DEV_BSIZE)
-static int pnmatch __P((char *, struct ptable_ent *));
-static int dirmatch __P((char *, struct iso_directory_record *));
+static int pnmatch __P((const char *, struct ptable_ent *));
+static int dirmatch __P((const char *, struct iso_directory_record *));
static int
pnmatch(path, pp)
- char *path;
+ const char *path;
struct ptable_ent *pp;
{
char *cp;
@@ -97,7 +97,7 @@
static int
dirmatch(path, dp)
- char *path;
+ const char *path;
struct iso_directory_record *dp;
{
char *cp;
@@ -135,7 +135,7 @@
int
cd9660_open(path, f)
- char *path;
+ const char *path;
struct open_file *f;
{
struct file *fp = 0;
diff -r 4bfc6ad76172 -r 60eab05a1180 sys/lib/libsa/cd9660.h
--- a/sys/lib/libsa/cd9660.h Wed Aug 20 23:37:51 2003 +0000
+++ b/sys/lib/libsa/cd9660.h Thu Aug 21 00:00:52 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cd9660.h,v 1.1 1996/09/30 16:01:20 ws Exp $ */
+/* $NetBSD: cd9660.h,v 1.2 2003/08/21 00:00:52 elric Exp $ */
/*
* Copyright (C) 1996 Wolfgang Solfrank.
@@ -31,11 +31,4 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-int cd9660_open __P((char *path, struct open_file *f));
-int cd9660_close __P((struct open_file *f));
-int cd9660_read __P((struct open_file *f, void *buf,
- size_t size, size_t *resid));
-int cd9660_write __P((struct open_file *f, void *buf,
- size_t size, size_t *resid));
-off_t cd9660_seek __P((struct open_file *f, off_t offset, int where));
-int cd9660_stat __P((struct open_file *f, struct stat *sb));
+FS_DEF(cd9660);
Home |
Main Index |
Thread Index |
Old Index