]> diplodocus.org Git - nmh/blobdiff - sbr/dtime.c
read_switch.c: Move interface declaration to own file.
[nmh] / sbr / dtime.c
index b5039ed6d96c0c6987ffb8c03bb6578cd8ab1bde..3f8f7631d71fc5c0b9509920a191a7d0be3f8131 100644 (file)
@@ -5,10 +5,10 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>   /* for snprintf() */
-#include <h/nmh.h>
-#include <h/utils.h>
-#include <h/tws.h>
+#include "h/mh.h"
+#include "h/nmh.h"
+#include "h/utils.h"
+#include "h/tws.h"
 #include <time.h>
 
 #if !defined(HAVE_STRUCT_TM_TM_GMTOFF)
@@ -285,7 +285,8 @@ dasctime (struct tws *tw, int flags)
  * return the string representation of the numeric offset.
  */
 
-char *dtimezone(int offset, int flags)
+char *
+dtimezone(int offset, int flags)
 {
     static char buffer[sizeof "+3579139459"]; /* 2,147,483,648 / 60 = 35,791,394 */
     bool pos;
@@ -355,7 +356,7 @@ dmktime (struct tws *tw)
     if (tw->tw_flags & TW_DST)
        result -= 60 * 60; /* One hour. */
 
-    return (tw->tw_clock = result);
+    return tw->tw_clock = result;
 }