summaryrefslogtreecommitdiffstats
path: root/lib/umberlog.c
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 /lib/umberlog.c
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>
Diffstat (limited to 'lib/umberlog.c')
-rw-r--r--lib/umberlog.c11
1 files changed, 6 insertions, 5 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,