mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Add missing consts around xlatlognam().
This commit is contained in:
parent
d583ae698d
commit
209cf8013b
13
logging.c
13
logging.c
@ -22,8 +22,9 @@ struct LogContext {
|
||||
int logtype; /* cached out of conf */
|
||||
};
|
||||
|
||||
static Filename *xlatlognam(Filename *s, char *hostname, int port,
|
||||
struct tm *tm);
|
||||
static Filename *xlatlognam(const Filename *s,
|
||||
const char *hostname, int port,
|
||||
const struct tm *tm);
|
||||
|
||||
/*
|
||||
* 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> "&&":&
|
||||
*/
|
||||
static Filename *xlatlognam(Filename *src, char *hostname, int port,
|
||||
struct tm *tm)
|
||||
static Filename *xlatlognam(const Filename *src,
|
||||
const char *hostname, int port,
|
||||
const struct tm *tm)
|
||||
{
|
||||
char buf[32], *bufp;
|
||||
char buf[32];
|
||||
const char *bufp;
|
||||
int size;
|
||||
strbuf *buffer;
|
||||
const char *s;
|
||||
|
Loading…
Reference in New Issue
Block a user