summaryrefslogtreecommitdiffstats
path: root/lib/libstand/cd9660.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-09-18 22:58:01 +0000
committermsmith <msmith@FreeBSD.org>1998-09-18 22:58:01 +0000
commit3b7700ffefbf84bddf6433f318b4f2d440ab544d (patch)
treebe8d7f6697a189dd3af5c56e280e7937bcdf9ab5 /lib/libstand/cd9660.c
parent01f9752c5500adf97fd320a4547b366297e6b6d9 (diff)
downloadFreeBSD-src-3b7700ffefbf84bddf6433f318b4f2d440ab544d.zip
FreeBSD-src-3b7700ffefbf84bddf6433f318b4f2d440ab544d.tar.gz
Path arguments to *_open functions should be const, but we were mangling
them. Submitted by: write-protected text segment in BTX
Diffstat (limited to 'lib/libstand/cd9660.c')
-rw-r--r--lib/libstand/cd9660.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libstand/cd9660.c b/lib/libstand/cd9660.c
index 5d3d85a..0930582 100644
--- a/lib/libstand/cd9660.c
+++ b/lib/libstand/cd9660.c
@@ -43,7 +43,7 @@
#include "stand.h"
-static int cd9660_open(char *path, struct open_file *f);
+static int cd9660_open(const char *path, struct open_file *f);
static int cd9660_close(struct open_file *f);
static int cd9660_read(struct open_file *f, void *buf, size_t size, size_t *resid);
static int cd9660_write(struct open_file *f, void *buf, size_t size, size_t *resid);
@@ -91,7 +91,7 @@ isonum_732(p)
static int
pnmatch(path, pp)
- char *path;
+ const char *path;
struct ptable_ent *pp;
{
char *cp;
@@ -110,7 +110,7 @@ pnmatch(path, pp)
static int
dirmatch(path, dp)
- char *path;
+ const char *path;
struct iso_directory_record *dp;
{
char *cp;
@@ -148,7 +148,7 @@ dirmatch(path, dp)
static int
cd9660_open(path, f)
- char *path;
+ const char *path;
struct open_file *f;
{
struct file *fp = 0;
OpenPOWER on IntegriCloud