* lib/readutmp.c (get_boot_time_uncached, get_boot_time):
Pacify gcc 13 -Wstrict-prototypes.
2023-08-03 Paul Eggert <eggert@cs.ucla.edu>
+ readutmp: pacify -Wstrict-prototypes
+ * lib/readutmp.c (get_boot_time_uncached, get_boot_time):
+ Pacify gcc 13 -Wstrict-prototypes.
+
readutmp: fix idx_t FIXME in API
* lib/readutmp.c (read_utmp): 2nd arg is now idx_t *, not
size_t *.
/* Use systemd and Linux /proc and kernel APIs. */
static struct timeval
-get_boot_time_uncached ()
+get_boot_time_uncached (void)
{
/* /proc/uptime contains the uptime with a resolution of 0.01 sec. */
FILE *fp = fopen ("/proc/uptime", "re");
}
static struct timeval
-get_boot_time ()
+get_boot_time (void)
{
static int cached;
static struct timeval boot_time;