summaryrefslogtreecommitdiffstats
path: root/lib/libstand/zipfs.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/zipfs.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/zipfs.c')
-rw-r--r--lib/libstand/zipfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libstand/zipfs.c b/lib/libstand/zipfs.c
index 9058907..3a9730b 100644
--- a/lib/libstand/zipfs.c
+++ b/lib/libstand/zipfs.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: zipfs.c,v 1.1.1.1 1998/08/20 08:19:55 msmith Exp $
*
*/
@@ -43,7 +43,7 @@ struct z_file
};
static int zf_fill(struct z_file *z);
-static int zf_open(char *path, struct open_file *f);
+static int zf_open(const char *path, struct open_file *f);
static int zf_close(struct open_file *f);
static int zf_read(struct open_file *f, void *buf, size_t size, size_t *resid);
static off_t zf_seek(struct open_file *f, off_t offset, int where);
@@ -157,7 +157,7 @@ check_header(struct z_file *zf)
}
static int
-zf_open(char *fname, struct open_file *f)
+zf_open(const char *fname, struct open_file *f)
{
static char *zfname;
int rawfd;
OpenPOWER on IntegriCloud