* [Bug 2621] Avoid use of indeterminate address after 'free()'
(minor C standard conformance issue)
+* Quiet warnings from ntp_calendar.h: avoid using argument names.
(4.2.7p447) 2014/07/05 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 2620] Use version.pm for checking version numbers in NTP::Util.
* [Bug 2624] Fix signed compare on 'l_fp'.
* standard.
*/
extern int
-ntpcal_get_build_date(struct calendar * jd);
+ntpcal_get_build_date(struct calendar * /* jd */);
/*
* Convert a timestamp in NTP scale to a time_t value in the UN*X
* current system time.
*/
extern vint64
-ntpcal_ntp_to_time(uint32_t ntp, const time_t *pivot);
+ntpcal_ntp_to_time(uint32_t /* ntp */, const time_t * /* pivot */);
/*
* Convert a timestamp in NTP scale to a 64bit seconds value in the NTP
* Note: The pivot must be given in UN*X time scale!
*/
extern vint64
-ntpcal_ntp_to_ntp(uint32_t ntp, const time_t *pivot);
+ntpcal_ntp_to_ntp(uint32_t /* ntp */, const time_t * /* pivot */);
/*
* Split a time stamp in seconds into elapsed days and elapsed seconds
* since midnight.
*/
extern ntpcal_split
-ntpcal_daysplit(const vint64*);
+ntpcal_daysplit(const vint64 *);
/*
* Merge a number of days and a number of seconds into seconds,
* expressed in 64 bits to avoid overflow.
*/
extern vint64
-ntpcal_dayjoin(int32_t days, int32_t seconds);
+ntpcal_dayjoin(int32_t /* days */, int32_t /* seconds */);
/*
* Convert elapsed years in Era into elapsed days in Era.
*/
extern int32_t
-ntpcal_days_in_years(int32_t years);
+ntpcal_days_in_years(int32_t /* years */);
/*
* Convert a number of elapsed month in a year into elapsed days
* excess! But then, we need no leap year flag, either...)
*/
extern ntpcal_split
-ntpcal_days_in_months(int32_t months);
+ntpcal_days_in_months(int32_t /* months */);
/*
* Convert ELAPSED years/months/days of gregorian calendar to elapsed
* days in Gregorian epoch. No range checks done here!
*/
extern int32_t
-ntpcal_edate_to_eradays(int32_t years, int32_t months, int32_t mdays);
+ntpcal_edate_to_eradays(int32_t /* years */, int32_t /* months */, int32_t /* mdays */);
/*
* Convert a time spec to seconds. No range checks done here!