summaryrefslogtreecommitdiffstats
path: root/source/lib/util_file.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-09-29 11:51:40 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-09-29 11:51:40 +0000
commitb648cc669d16eb40b477c8dc51efeab485a15de5 (patch)
tree46bc2bdd64de44d3f470c7505ba73c583485b168 /source/lib/util_file.c
parentd0628d0d2d5f5366179d2508456ae06ce3879be3 (diff)
downloadsamba-b648cc669d16eb40b477c8dc51efeab485a15de5.tar.gz
samba-b648cc669d16eb40b477c8dc51efeab485a15de5.tar.xz
samba-b648cc669d16eb40b477c8dc51efeab485a15de5.zip
Add a few const statements to various odd bits of the tree. (Fixes some
warnings)
Diffstat (limited to 'source/lib/util_file.c')
-rw-r--r--source/lib/util_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/util_file.c b/source/lib/util_file.c
index 35b47a2cbb3..1d7b85f75cb 100644
--- a/source/lib/util_file.c
+++ b/source/lib/util_file.c
@@ -406,7 +406,7 @@ char *fd_load(int fd, size_t *size)
/****************************************************************************
load a file into memory
****************************************************************************/
-char *file_load(char *fname, size_t *size)
+char *file_load(const char *fname, size_t *size)
{
int fd;
char *p;
@@ -464,7 +464,7 @@ static char **file_lines_parse(char *p, size_t size, int *numlines)
load a file into memory and return an array of pointers to lines in the file
must be freed with file_lines_free().
****************************************************************************/
-char **file_lines_load(char *fname, int *numlines)
+char **file_lines_load(const char *fname, int *numlines)
{
char *p;
size_t size;