diff --git a/logger.c b/logger.c index b9243b1..dc304de 100644 --- a/logger.c +++ b/logger.c @@ -115,14 +115,14 @@ void logger(int severity, const char *fmt, ...) if (log_fp) { fprintf(log_fp, "%s %s %s[%d.%li]: %s\n", time_buf, hostname, - log_ident, getpid(), pthread_self(), message); + log_ident, getpid(), (unsigned long int) pthread_self(), message); fflush(log_fp); } else if (log_syslog_is_open) syslog(severity, "%s", message); else fprintf(stderr, "%s %s %s[%d.%li]: %s\n", time_buf, hostname, - log_ident, getpid(), pthread_self(), message); + log_ident, getpid(), (unsigned long int) pthread_self(), message); } va_end(args); } diff --git a/tftpd_pcre.c b/tftpd_pcre.c index 24b2770..28287f6 100644 --- a/tftpd_pcre.c +++ b/tftpd_pcre.c @@ -106,7 +106,7 @@ tftpd_pcre_self_t *tftpd_pcre_open(char *filename) logger(LOG_DEBUG,"file: %s line: %d substring: %d value: %s", filename, linecount, subnum, substrlist[subnum]); } - pcre2_substring_list_free((const PCRE2_UCHAR **)substrlist); + pcre2_substring_list_free((PCRE2_UCHAR **)substrlist); if (matches != 3) {