Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion tftpd_pcre.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down