1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-07 20:23:50 +03:00

Merge from HEAD - make Samba compile with -Wwrite-strings without additional

warnings.  (Adds a lot of const).

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
-
parent 96e9fa5f22
commit 3a7458f947
131 changed files with 1197 additions and 1188 deletions

View File

@@ -24,7 +24,7 @@
typedef const struct
{
char *dos_errstr;
const char *dos_errstr;
WERROR werror;
} werror_code_struct;
@@ -73,7 +73,7 @@ werror_code_struct dos_errs[] =
/*****************************************************************************
returns a DOS error message. not amazingly helpful, but better than a number.
*****************************************************************************/
char *dos_errstr(WERROR werror)
const char *dos_errstr(WERROR werror)
{
static pstring msg;
int idx = 0;