summaryrefslogtreecommitdiff
path: root/source3
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
commitd25c2b146b1581ef2a141ecbc04579b792b4c4dc (patch)
tree52b39bfe595ac99207f805aa782a75f1aa2503b4 /source3
parent00d1bccaab0d9ae1cb485149ff11d3bef25098ff (diff)
downloadsamba-d25c2b146b1581ef2a141ecbc04579b792b4c4dc.tar.gz
samba-d25c2b146b1581ef2a141ecbc04579b792b4c4dc.tar.bz2
samba-d25c2b146b1581ef2a141ecbc04579b792b4c4dc.zip
Add a few const statements to various odd bits of the tree. (Fixes some
warnings) (This used to be commit b648cc669d16eb40b477c8dc51efeab485a15de5)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/charcnv.c2
-rw-r--r--source3/lib/iconv.c2
-rw-r--r--source3/lib/util_file.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c
index 5afc638a8d..adcd8b2aa9 100644
--- a/source3/lib/charcnv.c
+++ b/source3/lib/charcnv.c
@@ -94,7 +94,7 @@ size_t convert_string(charset_t from, charset_t to,
{
size_t i_len, o_len;
size_t retval;
- char* inbuf = (char*)src;
+ const char* inbuf = (const char*)src;
char* outbuf = (char*)dest;
static int initialised;
smb_iconv_t descriptor;
diff --git a/source3/lib/iconv.c b/source3/lib/iconv.c
index 05292264c2..cf9fabf8c6 100644
--- a/source3/lib/iconv.c
+++ b/source3/lib/iconv.c
@@ -76,7 +76,7 @@ static size_t sys_iconv(void *cd,
on systems that don't have iconv
*/
size_t smb_iconv(smb_iconv_t cd,
- char **inbuf, size_t *inbytesleft,
+ const char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft)
{
char cvtbuf[2048];
diff --git a/source3/lib/util_file.c b/source3/lib/util_file.c
index 35b47a2cbb..1d7b85f75c 100644
--- a/source3/lib/util_file.c
+++ b/source3/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;