]> Savannah Git Hosting - gnulib.git/commitdiff
readutmp: pacify -Wstrict-prototypes
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Aug 2023 22:54:12 +0000 (15:54 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Aug 2023 01:20:51 +0000 (18:20 -0700)
* lib/readutmp.c (get_boot_time_uncached, get_boot_time):
Pacify gcc 13 -Wstrict-prototypes.

ChangeLog
lib/readutmp.c

index a87e6537b1bee60d3346a5cf0316d458b60d5c36..1a75ea0c33027ecae8c7b605797297de5b1654e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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 *.
index 66314ec1db92945bedaa97b1c54589ec13c50116..97e92e69afb92a3ec9cebe6f859d7389b911ef41 100644 (file)
@@ -94,7 +94,7 @@ desirable_utmp_entry (STRUCT_UTMP const *ut, int options)
 /* 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");
@@ -147,7 +147,7 @@ get_boot_time_uncached ()
 }
 
 static struct timeval
-get_boot_time ()
+get_boot_time (void)
 {
   static int cached;
   static struct timeval boot_time;