return ctx;
}
+void log_free(void *handle)
+{
+ struct LogContext *ctx = (struct LogContext *)handle;
+
+ logfclose(ctx);
+ sfree(ctx);
+}
+
void log_reconfig(void *handle, Config *cfg)
{
struct LogContext *ctx = (struct LogContext *)handle;
reset_logging = FALSE;
if (reset_logging)
- logfclose(logctx);
+ logfclose(ctx);
ctx->cfg = *cfg; /* STRUCTURE COPY */
if (reset_logging)
- logfopen(logctx);
+ logfopen(ctx);
}
/*