projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
375759e
)
systemd: Also force base-10 for the strtol() call
author
Bryce Harrington
<bryce@osg.samsung.com>
Wed, 13 Jul 2016 02:03:01 +0000
(19:03 -0700)
committer
Bryce Harrington
<bryce@osg.samsung.com>
Wed, 13 Jul 2016 02:03:01 +0000
(19:03 -0700)
This call is used to parse a time value expressed in usec's, which is
always decimal.
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
compositor/systemd-notify.c
patch
|
blob
|
history
diff --git
a/compositor/systemd-notify.c
b/compositor/systemd-notify.c
index
4407059
..
9fbd5ee
100644
(file)
--- a/
compositor/systemd-notify.c
+++ b/
compositor/systemd-notify.c
@@
-145,7
+145,7
@@
module_init(struct weston_compositor *compositor,
return 0;
errno = 0;
- watchdog_time_conv = strtol(watchdog_time_env, &tail, 0);
+ watchdog_time_conv = strtol(watchdog_time_env, &tail,
1
0);
if ((errno != 0) || (*tail != '\0'))
return 0;