lib/timeutil: support const correctness for pointer parameter
timeutil_timegm() does not modify the passed structure, so it should indicate that in the signature (even though the GNU extension does not). Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
parent
5bc06e8250
commit
cc1594a59a
2 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ extern "C" {
|
|||
*
|
||||
* @see http://man7.org/linux/man-pages/man3/timegm.3.html
|
||||
*/
|
||||
time_t timeutil_timegm(struct tm *tm);
|
||||
time_t timeutil_timegm(const struct tm *tm);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue