projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2a05d2c
)
style
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Tue, 2 Apr 2013 07:10:25 +0000
(07:10 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Tue, 2 Apr 2013 07:10:25 +0000
(07:10 +0000)
src/ui_sensorpref.c
patch
|
blob
|
history
diff --git
a/src/ui_sensorpref.c
b/src/ui_sensorpref.c
index
c9f31b3
..
8fa4400
100644
(file)
--- a/
src/ui_sensorpref.c
+++ b/
src/ui_sensorpref.c
@@
-111,14
+111,11
@@
static struct sensor_pref **sensor_pref_list_new(struct psensor **sensors,
static void sensor_pref_list_free(struct sensor_pref **list)
{
static void sensor_pref_list_free(struct sensor_pref **list)
{
- struct sensor_pref **cur
= list
;
+ struct sensor_pref **cur;
- while (*cur) {
+ for (cur = list; *cur; cur++)
sensor_pref_free(*cur);
sensor_pref_free(*cur);
- cur++;
- }
-
free(list);
}
free(list);
}