summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-11 15:18:26 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-03 11:02:11 -0800
commit6db8fd556e2562e9a0a821c0d6fd4f7cdcf6266c (patch)
tree45171678d6b1fbfe936bb2586933d3e03c93500a /utils.h
parent299c9762b1dbe53f3297c54e5526aeae767d1a10 (diff)
Mark more pointers as const
Some suggested by cppcheck, others by manual code inspection Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils.h b/utils.h
index 2ccff4f..2bf7674 100644
--- a/utils.h
+++ b/utils.h
@@ -85,7 +85,7 @@ extern void *uRecalloc(void * /* old */ ,
/***====================================================================***/
-extern Boolean uSetErrorFile(char * /* name */
+extern Boolean uSetErrorFile(const char * /* name */
);
#define INFO uInformation
@@ -120,13 +120,13 @@ uInformation(const char * /* s */ , ...
extern void uInternalError(const char * /* s */ , ...
) _X_ATTRIBUTE_PRINTF(1, 2);
- extern void uSetPreErrorMessage(char * /* msg */
+ extern void uSetPreErrorMessage(const char * /* msg */
);
- extern void uSetPostErrorMessage(char * /* msg */
+ extern void uSetPostErrorMessage(const char * /* msg */
);
- extern void uSetErrorPrefix(char * /* void */
+ extern void uSetErrorPrefix(const char * /* void */
);
extern void uFinishUp(void);
@@ -171,9 +171,9 @@ uInformation(const char * /* s */ , ...
extern unsigned int DEBUG_VAR;
-extern void uDebug(char *, ...) _X_ATTRIBUTE_PRINTF(1, 2);
+extern void uDebug(const char *, ...) _X_ATTRIBUTE_PRINTF(1, 2);
-extern Boolean uSetDebugFile(char *name);
+extern Boolean uSetDebugFile(const char *name);
extern int uDebugIndentLevel;