use the "bool" data type instead of "int"
"bool" should be used in C99 programs for boolean values.
This commit is contained in:
@@ -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 { \
|
||||
|
Reference in New Issue
Block a user