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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user