]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - time/test_time.c
Update automatically-generated copyright dates
[thirdparty/glibc.git] / time / test_time.c
index b3573aa26ac34bf69c0ca33248f3e5bb888a1b4d..7de7ea7e9ae52dda97a33689a18c69c761ea5b94 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1994, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -13,7 +13,7 @@
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
+   <https://www.gnu.org/licenses/>.  */
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -24,7 +24,7 @@ int
 main (int argc, char **argv)
 {
   time_t t;
-  register struct tm *tp;
+  struct tm *tp;
   struct tm tbuf;
   int lose = 0;
 
@@ -67,7 +67,7 @@ main (int argc, char **argv)
          puts("localtime() failed.");
          lose = 1;
        }
-      else if (strftime(buf, sizeof(buf), "%a %b %d %X %Z %Y", tp) == 0)
+      else if (strftime (buf, sizeof (buf), "%a %b %d %X %Z %Y", tp) == 0)
        {
          puts("strftime() failed.");
          lose = 1;