summaryrefslogtreecommitdiff
path: root/lib/libfetch/file.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2001-05-26 17:31:50 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2001-05-26 17:31:50 +0000
commitdbd3b502318a9b8b5870f90ef634be04f61ac3f1 (patch)
tree5bec16aac6e092d688cfde93bcef136caf6f9163 /lib/libfetch/file.c
parent9f85b2588ff872be1a956de057486366cfc7af13 (diff)
Notes
Diffstat (limited to 'lib/libfetch/file.c')
-rw-r--r--lib/libfetch/file.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libfetch/file.c b/lib/libfetch/file.c
index 5d591432547c..2db091db3f25 100644
--- a/lib/libfetch/file.c
+++ b/lib/libfetch/file.c
@@ -39,7 +39,7 @@
#include "common.h"
FILE *
-fetchXGetFile(struct url *u, struct url_stat *us, char *flags)
+fetchXGetFile(struct url *u, struct url_stat *us, const char *flags)
{
FILE *f;
@@ -60,13 +60,13 @@ fetchXGetFile(struct url *u, struct url_stat *us, char *flags)
}
FILE *
-fetchGetFile(struct url *u, char *flags)
+fetchGetFile(struct url *u, const char *flags)
{
return fetchXGetFile(u, NULL, flags);
}
FILE *
-fetchPutFile(struct url *u, char *flags)
+fetchPutFile(struct url *u, const char *flags)
{
FILE *f;
@@ -87,7 +87,7 @@ fetchPutFile(struct url *u, char *flags)
}
static int
-_fetch_stat_file(char *fn, struct url_stat *us)
+_fetch_stat_file(const char *fn, struct url_stat *us)
{
struct stat sb;
@@ -104,13 +104,13 @@ _fetch_stat_file(char *fn, struct url_stat *us)
}
int
-fetchStatFile(struct url *u, struct url_stat *us, char *flags)
+fetchStatFile(struct url *u, struct url_stat *us, const char *flags)
{
return _fetch_stat_file(u->doc, us);
}
struct url_ent *
-fetchListFile(struct url *u, char *flags)
+fetchListFile(struct url *u, const char *flags)
{
DIR *dir;
struct dirent *de;