summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMagnus Kessler <Magnus.Kessler@gmx.net>2008-10-09 20:34:27 +0200
committerChristoph Brill <egore911@egore911.de>2008-10-09 20:38:16 +0200
commit0da6ca4fb990a3cbd7558d4987ac946a77363f08 (patch)
treed19addb7c36569134e7b8f8e012cdcaac78c112b /tools
parente30dda260b2bead539a5dd484734340ab2affdd7 (diff)
[sparse] Fix warnings about using plain integer as NULL pointer
Signed-off-by: Magnus Kessler <Magnus.Kessler@gmx.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Christoph Brill <egore911@egore911.de>
Diffstat (limited to 'tools')
-rw-r--r--tools/synclient.c2
-rw-r--r--tools/syndaemon.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/synclient.c b/tools/synclient.c
index 7977d89..7ec8fa9 100644
--- a/tools/synclient.c
+++ b/tools/synclient.c
@@ -123,7 +123,7 @@ static struct Parameter params[] = {
DEFINE_PAR("PressureMotionMinFactor", press_motion_min_factor, PT_DOUBLE, 0, 10.0),
DEFINE_PAR("PressureMotionMaxFactor", press_motion_max_factor, PT_DOUBLE, 0, 10.0),
DEFINE_PAR("GrabEventDevice", grab_event_device, PT_BOOL, 0, 1),
- { 0, 0, 0, 0, 0 }
+ { NULL, 0, 0, 0, 0 }
};
static void
diff --git a/tools/syndaemon.c b/tools/syndaemon.c
index 9e3ad98..2662bb5 100644
--- a/tools/syndaemon.c
+++ b/tools/syndaemon.c
@@ -113,7 +113,7 @@ install_signal_handler()
#endif
for (i = 0; i < sizeof(signals) / sizeof(int); i++) {
- if (sigaction(signals[i], &act, 0) == -1) {
+ if (sigaction(signals[i], &act, NULL) == -1) {
perror("sigaction");
exit(2);
}