* 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 "dtime.h"
+#include "h/nmh.h"
+#include "h/utils.h"
+#include "h/tws.h"
#include <time.h>
#if !defined(HAVE_STRUCT_TM_TM_GMTOFF)
* 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;
if (tw->tw_flags & TW_DST)
result -= 60 * 60; /* One hour. */
- return (tw->tw_clock = result);
+ return tw->tw_clock = result;
}
if (tw2->tw_clock == 0)
dmktime (tw2);
- return ((c1 = tw1->tw_clock) > (c2 = tw2->tw_clock) ? 1
- : c1 == c2 ? 0 : -1);
+ return (c1 = tw1->tw_clock) > (c2 = tw2->tw_clock) ? 1
+ : c1 == c2 ? 0 : -1;
}