X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/96a2a03a1473522669e8848959c3aa380cf3d4eb..d43c995de90c5022b8a2be60e8595b0a968f6089:/sbr/dtime.c?ds=sidebyside diff --git a/sbr/dtime.c b/sbr/dtime.c index b5039ed6..3f8f7631 100644 --- a/sbr/dtime.c +++ b/sbr/dtime.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include /* for snprintf() */ -#include -#include -#include +#include "h/mh.h" +#include "h/nmh.h" +#include "h/utils.h" +#include "h/tws.h" #include #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; }