summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGergely Nagy <algernon@balabit.hu>2012-08-10 12:22:04 +0200
committerGergely Nagy <algernon@balabit.hu>2012-08-10 12:22:04 +0200
commit1e3ef078ff10db76cb0a5196d26ad416b5aa1789 (patch)
tree6a5551240b50c2d44cfb4a78314bc37318cfaf01
parent56beac7c00a3b5e4879f918b14ca9e85e63d4a33 (diff)
downloadlibumberlog-1e3ef078ff10db76cb0a5196d26ad416b5aa1789.tar.gz
libumberlog-1e3ef078ff10db76cb0a5196d26ad416b5aa1789.tar.xz
libumberlog-1e3ef078ff10db76cb0a5196d26ad416b5aa1789.zip
Whitespace & coding style cleanup
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
-rw-r--r--lib/umberlog.c11
-rw-r--r--t/test_umberlog.c2
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;