From 6a264fca602966e00c71e7c33e453dae0cd8a168 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 13 Feb 2009 17:48:38 +0100 Subject: [PATCH] Logging: Use `uns' instead of `u32' to pass flags. --- ucw/log-file.c | 2 +- ucw/log-syslog.c | 2 +- ucw/log.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ucw/log-file.c b/ucw/log-file.c index a07f705f..98a4b8e2 100644 --- a/ucw/log-file.c +++ b/ucw/log-file.c @@ -124,7 +124,7 @@ static void ls_fdfile_close(struct log_stream *ls) } /* handler for standard files */ -static int ls_fdfile_handler(struct log_stream* ls, const char *m, u32 cat UNUSED) +static int ls_fdfile_handler(struct log_stream* ls, const char *m, uns cat UNUSED) { int len = strlen(m); int r = write(ls->idata, m, len); diff --git a/ucw/log-syslog.c b/ucw/log-syslog.c index 9883f789..f92b6165 100644 --- a/ucw/log-syslog.c +++ b/ucw/log-syslog.c @@ -39,7 +39,7 @@ static int ls_syslog_convert_level(int level) } /* simple syslog write handler */ -static int ls_syslog_handler(struct log_stream *ls, const char *m, u32 flags) +static int ls_syslog_handler(struct log_stream *ls, const char *m, uns flags) { int prio; ASSERT(ls); diff --git a/ucw/log.h b/ucw/log.h index cbc018e9..b336f2e7 100644 --- a/ucw/log.h +++ b/ucw/log.h @@ -28,14 +28,14 @@ struct log_stream /* severity levels to accept - bitmask of (1<