diff options
| author | Sam Varshavchik | 2022-05-22 23:52:28 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2022-05-22 23:52:31 -0400 |
| commit | 83e37efc8ed785cd095eb585ff747e5702ec49b3 (patch) | |
| tree | 15aed6da6214e9a03d91be1754cd351175349945 /rfc1035/rfc1035dumprrdata.c | |
| parent | 1ce81fa6af52651628a0bffcd8b15fdb459901a5 (diff) | |
| download | courier-libs-83e37efc8ed785cd095eb585ff747e5702ec49b3.tar.bz2 | |
gcc 12, autotool updates, sqwebmail fixes.
Diffstat (limited to 'rfc1035/rfc1035dumprrdata.c')
| -rw-r--r-- | rfc1035/rfc1035dumprrdata.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/rfc1035/rfc1035dumprrdata.c b/rfc1035/rfc1035dumprrdata.c index 0e964c7..4a12022 100644 --- a/rfc1035/rfc1035dumprrdata.c +++ b/rfc1035/rfc1035dumprrdata.c @@ -9,15 +9,9 @@ #include <stdlib.h> #include <sys/types.h> #include <arpa/inet.h> -#if TIME_WITH_SYS_TIME -#include <sys/time.h> #include <time.h> -#else #if HAVE_SYS_TIME_H #include <sys/time.h> -#else -#include <time.h> -#endif #endif @@ -34,15 +28,15 @@ char timebuf[RFC1035_MAXTIMEBUFSIZE+1]; if (!p) return (0); strcat(strcat(strcat(strcpy(p, name2), ". "), name1), ". (\n\t\t\t\t"); - sprintf(p+strlen(p), "%lu ; serial\n", + sprintf(p+strlen(p), "%lu ; serial\n", (unsigned long)rr->rr.soa.serial); - sprintf(p+strlen(p), "\t\t\t\t%s ; refresh\n", + sprintf(p+strlen(p), "\t\t\t\t%s ; refresh\n", rfc1035_fmttime( rr->rr.soa.refresh, timebuf)); - sprintf(p+strlen(p), "\t\t\t\t%s ; retry\n", + sprintf(p+strlen(p), "\t\t\t\t%s ; retry\n", rfc1035_fmttime( rr->rr.soa.retry, timebuf)); - sprintf(p+strlen(p), "\t\t\t\t%s ; expire\n", + sprintf(p+strlen(p), "\t\t\t\t%s ; expire\n", rfc1035_fmttime( rr->rr.soa.expire, timebuf)); - sprintf(p+strlen(p), "\t\t\t\t%s) ; minimum", + sprintf(p+strlen(p), "\t\t\t\t%s) ; minimum", rfc1035_fmttime( rr->rr.soa.minimum, timebuf)); return (p); } |
