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:
parent
c982c6b405
commit
eaf1d51b1c
7 changed files with 24 additions and 25 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue