1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-22 14:39:24 -05:00

Add missing consts around xlatlognam().

This commit is contained in:
Jacob Nevins 2023-07-16 16:00:29 +01:00
parent d583ae698d
commit 209cf8013b

View File

@ -22,8 +22,9 @@ struct LogContext {
int logtype; /* cached out of conf */ int logtype; /* cached out of conf */
}; };
static Filename *xlatlognam(Filename *s, char *hostname, int port, static Filename *xlatlognam(const Filename *s,
struct tm *tm); const char *hostname, int port,
const struct tm *tm);
/* /*
* Internal wrapper function which must be called for _all_ output * Internal wrapper function which must be called for _all_ output
@ -451,10 +452,12 @@ void log_reconfig(LogContext *ctx, Conf *conf)
* *
* "&Y":YYYY "&m":MM "&d":DD "&T":hhmmss "&h":<hostname> "&&":& * "&Y":YYYY "&m":MM "&d":DD "&T":hhmmss "&h":<hostname> "&&":&
*/ */
static Filename *xlatlognam(Filename *src, char *hostname, int port, static Filename *xlatlognam(const Filename *src,
struct tm *tm) const char *hostname, int port,
const struct tm *tm)
{ {
char buf[32], *bufp; char buf[32];
const char *bufp;
int size; int size;
strbuf *buffer; strbuf *buffer;
const char *s; const char *s;