]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/: Fix indentation and alignment
authorAlejandro Colomar <alx@kernel.org>
Tue, 18 Feb 2025 14:08:52 +0000 (15:08 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Mon, 2 Jun 2025 07:59:51 +0000 (09:59 +0200)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/getdate.c
lib/strtoday.c

index 3d08bd4d1675b740774a61b3ddd3f16d52bc0e53..7479875e8060c54cd410afe0009fda043943b45c 100644 (file)
@@ -30,20 +30,21 @@ static long  yyYear;
 static int parse_date(const char *s);
 
 
-time_t get_date (const char *p, const time_t *now)
+time_t
+get_date(const char *p, const time_t *now)
 {
-  struct tm  tm;
+       struct tm  tm;
 
-  if (parse_date(p) == -1)
-    return -1;
+       if (parse_date(p) == -1)
+               return -1;
 
-  tm.tm_year = yyYear - TM_YEAR_ORIGIN;
-  tm.tm_mon = yyMonth - 1;
-  tm.tm_mday = yyDay;
-  tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
-  tm.tm_isdst = 0;
+       tm.tm_year = yyYear - TM_YEAR_ORIGIN;
+       tm.tm_mon = yyMonth - 1;
+       tm.tm_mday = yyDay;
+       tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
+       tm.tm_isdst = 0;
 
-  return timegm(&tm);
+       return timegm(&tm);
 }
 
 
index c37c90abedb158b9d778b00bed7cebdb2170159e..3d9410181f22ac9077cf9f160437a2f0645a256d 100644 (file)
@@ -21,7 +21,8 @@
 
 
 // string parse-to day-since-Epoch
-long strtoday (const char *str)
+long
+strtoday(const char *str)
 {
        time_t t;
        const char *s = str;