projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7d6c646
)
unsigned int instead of int for 'boolean' struct members
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Mon, 30 Apr 2012 09:36:47 +0000
(09:36 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Mon, 30 Apr 2012 09:36:47 +0000
(09:36 +0000)
src/lib/psensor.h
patch
|
blob
|
history
diff --git
a/src/lib/psensor.h
b/src/lib/psensor.h
index
b04ca41
..
2673b6b
100644
(file)
--- a/
src/lib/psensor.h
+++ b/
src/lib/psensor.h
@@
-72,8
+72,8
@@
struct psensor {
/* Color of the sensor used for the graph */
struct color *color;
/* Color of the sensor used for the graph */
struct color *color;
- /* Whether the
sensor is displayed in the graph
*/
- int enabled;
+ /* Whether the
graph sensor is displayed.
*/
+
unsigned
int enabled;
/* see psensor_type */
unsigned int type;
/* see psensor_type */
unsigned int type;
@@
-90,8
+90,8
@@
struct psensor {
int alarm_high_thresold;
int alarm_low_thresold;
int alarm_high_thresold;
int alarm_low_thresold;
- /* Whether
the current value is bigger than 'alarm_high_thresold'.
*/
- int alarm_raised;
+ /* Whether
an alarm is raised for this sensor
*/
+
unsigned
int alarm_raised;
void (*cb_alarm_raised) (struct psensor *, void *);
void *cb_alarm_raised_data;
void (*cb_alarm_raised) (struct psensor *, void *);
void *cb_alarm_raised_data;