1
0
Fork 0
mirror of https://github.com/kakwa/uts-server synced 2025-07-04 12:37:08 +02:00

pass context to the logging function

This commit is contained in:
kakwa 2016-08-24 23:03:49 +02:00
parent c982c6b405
commit eaf1d51b1c
7 changed files with 24 additions and 25 deletions

View file

@ -5,8 +5,8 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <syslog.h>
#include "utils.h"
#include <stdarg.h>
#include "context.h"
void skeleton_daemon() {
pid_t pid;
@ -59,7 +59,7 @@ void skeleton_daemon() {
openlog("firstdaemon", LOG_PID, LOG_DAEMON);
}
void logger(int priority, char *fmt, ...) {
void logger(rfc3161_context *ct, int priority, char *fmt, ...) {
FILE *stream;
char *out;
size_t len;