diff options
Diffstat (limited to 'runtime/rsyslog.c')
-rw-r--r-- | runtime/rsyslog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/rsyslog.c b/runtime/rsyslog.c index 53c7855a..6523ae6d 100644 --- a/runtime/rsyslog.c +++ b/runtime/rsyslog.c @@ -86,11 +86,11 @@ int default_thr_sched_policy; #endif /* forward definitions */ -static rsRetVal dfltErrLogger(int, uchar *errMsg); +static rsRetVal dfltErrLogger(const int, const uchar *errMsg); /* globally visible static data - see comment in rsyslog.h for details */ uchar *glblModPath; /* module load path */ -rsRetVal (*glblErrLogger)(int, uchar*) = dfltErrLogger; /* the error logger to use by the errmsg module */ +rsRetVal (*glblErrLogger)(const int, const uchar*) = dfltErrLogger; /* the error logger to use by the errmsg module */ /* static data */ static int iRefCount = 0; /* our refcount - it MUST exist only once inside a process (not thread) @@ -102,7 +102,7 @@ static int iRefCount = 0; /* our refcount - it MUST exist only once inside a pro * default so that we can log errors during the intial phase, most importantly * during initialization. -- rgerhards. 2008-04-17 */ -static rsRetVal dfltErrLogger(int iErr, uchar *errMsg) +static rsRetVal dfltErrLogger(const int iErr, const uchar *errMsg) { DEFiRet; fprintf(stderr, "rsyslog runtime error(%d): %s\n", iErr, errMsg); @@ -114,7 +114,7 @@ static rsRetVal dfltErrLogger(int iErr, uchar *errMsg) * rgerhards, 2008-04-18 */ rsRetVal -rsrtSetErrLogger(rsRetVal (*errLogger)(int, uchar*)) +rsrtSetErrLogger(rsRetVal (*errLogger)(int, const uchar*)) { DEFiRet; assert(errLogger != NULL); |