]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Use strict prototype in definition
authorChristian Göttsche <cgzones@googlemail.com>
Mon, 6 Mar 2023 15:50:30 +0000 (16:50 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Mon, 20 Mar 2023 07:47:52 +0000 (08:47 +0100)
    gettime.c:25:30: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
    /*@observer@*/time_t gettime ()
                                 ^
                                  void

libmisc/gettime.c

index fb2dbe9fc853d889ecfa7e9e53982020239c0142..bb6e8443da9ea17f1ae3f82cf7ae3fc50b8e26d2 100644 (file)
@@ -22,7 +22,7 @@
  * Epoch, 1970-01-01 00:00:00 +0000 (UTC), except that if the SOURCE_DATE_EPOCH
  * environment variable is exported it will use that instead.
  */
-/*@observer@*/time_t gettime ()
+/*@observer@*/time_t gettime (void)
 {
        char *endptr;
        char *source_date_epoch;