X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/96a2a03a1473522669e8848959c3aa380cf3d4eb..cae263b3cec6548fa9c752df0103308740c25e39:/sbr/dtime.c diff --git a/sbr/dtime.c b/sbr/dtime.c index b5039ed6..a8b8432c 100644 --- a/sbr/dtime.c +++ b/sbr/dtime.c @@ -5,10 +5,11 @@ * complete copyright information. */ -#include /* for snprintf() */ -#include -#include -#include +#include "h/mh.h" +#include "dtime.h" +#include "h/nmh.h" +#include "h/utils.h" +#include "h/tws.h" #include #if !defined(HAVE_STRUCT_TM_TM_GMTOFF) @@ -285,7 +286,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 +357,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; }