Imported Upstream version 1.7.6p1
[debian/sudo] / timestr.c
index 3b2a18dd7f2e43b137b01df92bb73aa45a6f19fd..9369e8c4abbc6026b5a97880bfc8cf81a3eae323 100644 (file)
--- a/timestr.c
+++ b/timestr.c
@@ -28,7 +28,7 @@
 #endif /* STDC_HEADERS */
 #include <time.h>
 
-#include "compat.h"
+#include "missing.h"
 
 char *get_timestr      __P((time_t, int));
 
@@ -55,7 +55,7 @@ get_timestr(tstamp, log_year)
     /* strftime() does not guarantee to NUL-terminate so we must check. */
     buf[sizeof(buf) - 1] = '\0';
     if (strftime(buf, sizeof(buf), s, timeptr) && buf[sizeof(buf) - 1] == '\0')
-       return(buf);
+       return buf;
 
 #endif /* HAVE_STRFTIME */
 
@@ -65,5 +65,5 @@ get_timestr(tstamp, log_year)
     else
        s[15] = '\0';                   /* don't care about year */
 
-    return(s);
+    return s;
 }