summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-11-15 13:57:25 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-11-15 13:57:25 +0000
commitd983ee8800d1213ef9cedad462d076bd7416c27a (patch)
tree7e5b93797de8294bde150dd21323368b7068aec7
parent3b06627f00ba4621011383e0fab0b0ba5d4e4645 (diff)
downloadsamba-d983ee8800d1213ef9cedad462d076bd7416c27a.tar.gz
samba-d983ee8800d1213ef9cedad462d076bd7416c27a.tar.bz2
samba-d983ee8800d1213ef9cedad462d076bd7416c27a.zip
Add const to DEBUG() macro.
(This used to be commit 43020bb4e61e3b44c2637e49f9e98222262f09b1)
-rw-r--r--source3/include/debug.h6
-rw-r--r--source3/lib/debug.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/source3/include/debug.h b/source3/include/debug.h
index 4b0b4b1ac4..5f87bf06fd 100644
--- a/source3/include/debug.h
+++ b/source3/include/debug.h
@@ -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;
diff --git a/source3/lib/debug.c b/source3/lib/debug.c
index f2a362bb86..ea5bad3b6d 100644
--- a/source3/lib/debug.c
+++ b/source3/lib/debug.c
@@ -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;