mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Add a few const statements to various odd bits of the tree. (Fixes some
warnings)
This commit is contained in:
parent
d0628d0d2d
commit
b648cc669d
@ -94,7 +94,7 @@ size_t convert_string(charset_t from, charset_t to,
|
|||||||
{
|
{
|
||||||
size_t i_len, o_len;
|
size_t i_len, o_len;
|
||||||
size_t retval;
|
size_t retval;
|
||||||
char* inbuf = (char*)src;
|
const char* inbuf = (const char*)src;
|
||||||
char* outbuf = (char*)dest;
|
char* outbuf = (char*)dest;
|
||||||
static int initialised;
|
static int initialised;
|
||||||
smb_iconv_t descriptor;
|
smb_iconv_t descriptor;
|
||||||
|
@ -76,7 +76,7 @@ static size_t sys_iconv(void *cd,
|
|||||||
on systems that don't have iconv
|
on systems that don't have iconv
|
||||||
*/
|
*/
|
||||||
size_t smb_iconv(smb_iconv_t cd,
|
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 **outbuf, size_t *outbytesleft)
|
||||||
{
|
{
|
||||||
char cvtbuf[2048];
|
char cvtbuf[2048];
|
||||||
|
@ -406,7 +406,7 @@ char *fd_load(int fd, size_t *size)
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
load a file into memory
|
load a file into memory
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
char *file_load(char *fname, size_t *size)
|
char *file_load(const char *fname, size_t *size)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
char *p;
|
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
|
load a file into memory and return an array of pointers to lines in the file
|
||||||
must be freed with file_lines_free().
|
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;
|
char *p;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
Loading…
Reference in New Issue
Block a user