summaryrefslogtreecommitdiff
path: root/src/notify.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 11:03:39 +0200
committerMax Kellermann <max@duempel.org>2008-10-08 11:03:39 +0200
commitb084bc28ede5d397e88a4e2bdad8c07a55069589 (patch)
treed61d58cc73ed7d591df05fee2f4a48682e8d9c8c /src/notify.h
parent71351160b1b6fd4203f27f9159ae39a476483e1a (diff)
use the "bool" data type instead of "int"
"bool" should be used in C99 programs for boolean values.
Diffstat (limited to 'src/notify.h')
-rw-r--r--src/notify.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/notify.h b/src/notify.h
index 91140d356..0875eb3ce 100644
--- a/src/notify.h
+++ b/src/notify.h
@@ -19,12 +19,13 @@
#ifndef NOTIFY_H
#define NOTIFY_H
+#include <stdbool.h>
#include <pthread.h>
struct notify {
pthread_mutex_t mutex;
pthread_cond_t cond;
- int pending;
+ bool pending;
};
#define NOTIFY_INITIALIZER { \