1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00

Add const to DEBUG() macro.

This commit is contained in:
Andrew Bartlett 0001-01-01 00:00:00 +00:00
parent 36441899e6
commit 43020bb4e6
2 changed files with 6 additions and 6 deletions

View File

@ -36,9 +36,9 @@
arguemnts to DEBUG() right. We have got them wrong too often in the
past.
*/
int Debug1( char *, ... ) PRINTF_ATTRIBUTE(1,2);
BOOL dbgtext( char *, ... ) PRINTF_ATTRIBUTE(1,2);
BOOL dbghdr( int level, char *file, char *func, int line );
int Debug1( const char *, ... ) PRINTF_ATTRIBUTE(1,2);
BOOL dbgtext( const char *, ... ) PRINTF_ATTRIBUTE(1,2);
BOOL dbghdr( int level, const char *file, const char *func, int line );
extern XFILE *dbf;
extern pstring debugf;

View File

@ -702,7 +702,7 @@ void check_log_size( void )
* This is called by dbghdr() and format_debug_text().
* ************************************************************************** **
*/
int Debug1( char *format_str, ... )
int Debug1( const char *format_str, ... )
{
va_list ap;
int old_errno = errno;
@ -897,7 +897,7 @@ void dbgflush( void )
* ************************************************************************** **
*/
BOOL dbghdr( int level, char *file, char *func, int line )
BOOL dbghdr( int level, const char *file, const char *func, int line )
{
/* Ensure we don't lose any real errno value. */
int old_errno = errno;
@ -967,7 +967,7 @@ BOOL dbghdr( int level, char *file, char *func, int line )
*
* ************************************************************************** **
*/
BOOL dbgtext( char *format_str, ... )
BOOL dbgtext( const char *format_str, ... )
{
va_list ap;
pstring msgbuf;