From 1e3ef078ff10db76cb0a5196d26ad416b5aa1789 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 10 Aug 2012 12:22:04 +0200 Subject: Whitespace & coding style cleanup Signed-off-by: Gergely Nagy --- lib/umberlog.c | 11 ++++++----- t/test_umberlog.c | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/umberlog.c b/lib/umberlog.c index a26cd0c..706942a 100644 --- a/lib/umberlog.c +++ b/lib/umberlog.c @@ -69,11 +69,12 @@ static struct int facility; const char *ident; - /* Cached data */ - pid_t pid; /* -1 = no value cached */ - uid_t uid; /* (uid_t)-1 = no value cached */ - gid_t gid; /* (gid_t)-1 = no value cached */ - char hostname[_POSIX_HOST_NAME_MAX + 1]; /* "" = no value cached */ + /* Cached data. + -1 (or an empty string) means no value cached. */ + pid_t pid; + uid_t uid; + gid_t gid; + char hostname[_POSIX_HOST_NAME_MAX + 1]; } ul_process_data = { PTHREAD_MUTEX_INITIALIZER, 0, LOG_USER, NULL, diff --git a/t/test_umberlog.c b/t/test_umberlog.c index cc437cf..88ea18f 100644 --- a/t/test_umberlog.c +++ b/t/test_umberlog.c @@ -31,7 +31,7 @@ verify_value (struct json_object *jo, const char *key, static void verify_value_differs (struct json_object *jo, const char *key, - const char *unexpected_value) + const char *unexpected_value) { struct json_object *o; const char *value; -- cgit