Bug 80597 - sd_watchdog_enabled man page: usec argument is not const
Summary: sd_watchdog_enabled man page: usec argument is not const
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-27 13:48 UTC by Florent Le Coz
Modified: 2014-06-27 17:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Florent Le Coz 2014-06-27 13:48:17 UTC
The sd_watchdog_enabled(3) man page states:

int sd_watchdog_enabled(int unset_environment, const uint64_t *usec);

But it should be

int sd_watchdog_enabled(int unset_environment, uint64_t *usec);

Because:
- usec is not const in src/systemd/sd-daemon.h
- it would not make sense, since the function sets the value pointed by usec to the configured watchdog timeout
Comment 1 Lennart Poettering 2014-06-27 17:52:05 UTC
Thanks! Fixed!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.