]> granicus.if.org Git - fcron/commitdiff
applied indent
authorThibault Godouet <fcron@free.fr>
Sun, 13 Apr 2014 16:50:44 +0000 (17:50 +0100)
committerThibault Godouet <fcron@free.fr>
Sun, 13 Apr 2014 16:50:44 +0000 (17:50 +0100)
conf.c
fcron.c
global.h
mem.c
mem.h

diff --git a/conf.c b/conf.c
index fd6284be77aa526cae88811fcabf59c6526f50f6..00228f4d0d56da3cb2a96c29cedbccad66838a2c 100644 (file)
--- a/conf.c
+++ b/conf.c
@@ -958,7 +958,8 @@ add_line_to_file(cl_t * cl, cf_t * cf, uid_t runas, char *runas_str,
                          " overflowed (case2). now=%lu, cl_timefreq=%lu, cl_nextexe=%lu.",
                          cl->cl_shell, now, cl->cl_timefreq, cl->cl_nextexe);
                     error
-                        ("Setting cl_nextexe to TIME_T_MAX=%ld to prevent an infinite loop.", TIME_T_MAX);
+                        ("Setting cl_nextexe to TIME_T_MAX=%ld to prevent an infinite loop.",
+                         TIME_T_MAX);
                     cl->cl_nextexe = TIME_T_MAX;
                 }
             }
diff --git a/fcron.c b/fcron.c
index c4e91e5905aad70cd4d2f417f96bd0c23e713e8f..d2b69b7a5a1a4410cf27261ad0f225c11658c8f3 100644 (file)
--- a/fcron.c
+++ b/fcron.c
@@ -381,7 +381,8 @@ parseopt(int argc, char *argv[])
         case 'l':
             if ((first_sleep = strtol(optarg, NULL, 10)) < 0
                 || first_sleep >= TIME_T_MAX)
-                die("First sleep can only be set between 0 and %d.", TIME_T_MAX);
+                die("First sleep can only be set between 0 and %d.",
+                    TIME_T_MAX);
             break;
 
         case 'm':
index 76367d69d774953866b2c8b832f19f2077c35de1..c2ab950c69c2bc44ffdc4317e7de6b37e19ab6af 100644 (file)
--- a/global.h
+++ b/global.h
 /* 2^33 = 8589934592, so LONG is 64bits at least */
 #if (LONG_MAX > INT_MAX) && (LONG_MAX > 8589934592)
 /* defined as time_t of 1st Jan of year (SHRT_MAX-1900) at 00:00:00 */
-#  define TIME_T_MAX 971859427200
+#define TIME_T_MAX 971859427200
 #else
 /* struct tm's tm_year is of type int, and tm_year will always be smaller than
  * the equivalent time_t, so INT_MAX is always a safe max value for time_t. */
-#  define TIME_T_MAX INT_MAX
+#define TIME_T_MAX INT_MAX
 #endif
 
 /* macros */
diff --git a/mem.c b/mem.c
index 59b001d6ec148a67696f8cb5014073a80593475d..2ce01072474dac788a258f8fcebce181b12d6e5f 100644 (file)
--- a/mem.c
+++ b/mem.c
 #if defined(__sun)
 /* Solaris 10 has no strndup() */
 char *
-strndup (const char *s, size_t n)
+strndup(const char *s, size_t n)
     /* Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu> */
 {
     char *result;
-    size_t len = strlen (s);
+    size_t len = strlen(s);
 
     if (n < len)
         len = n;
 
-    result = (char *) malloc (len + 1);
+    result = (char *)malloc(len + 1);
     if (!result)
         return 0;
 
-    memcpy (result, s, len);
+    memcpy(result, s, len);
     result[len] = '\0';
-    return(result);
+    return (result);
 }
 #endif
 
diff --git a/mem.h b/mem.h
index 5b98dc8b98008cfb75ed6327efb57159fad509d1..72b3c307b65fa9e7c1ccd5bf6bbb5e10529ac1fb 100644 (file)
--- a/mem.h
+++ b/mem.h
@@ -54,7 +54,7 @@
 
 /* functions prototypes */
 #if defined(__sun)
-extern char *strndup (const char *s, size_t n); /* Solaris 10 has no strndup() */
+extern char *strndup(const char *s, size_t n);  /* Solaris 10 has no strndup() */
 #endif
 extern char *strdup2(const char *);
 extern char *strndup2(const char *, size_t n);