From d036480eb208e821aba1485ec77da7f06bdf13a8 Mon Sep 17 00:00:00 2001 From: Doug Morris Date: Mon, 13 Sep 1999 18:20:28 +0000 Subject: [PATCH] updates to post.c and termsbr.c that prevent warnings on OpenBSD --- ChangeLog | 12 +++++++++++- uip/post.c | 6 +++--- uip/termsbr.c | 5 +++++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 810b823..4936012 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Mon Sep 13 20:25:21 1999 Doug Morris + + * added explicit cast to long from time_t for tclock in + post.c. + + * Commented out #ifdefs for in termsbr.c since + it's needed for ioctl() anyway. This prevents a warning about + implicit definition of ioctl(). + Sun Sep 12 15:50:34 1999 Doug Morris * updated Makefile.in so it recognized COMPLETION-TCSH and @@ -36,7 +45,8 @@ Sun Sep 12 15:50:34 1999 Doug Morris Sun Sep 12 09:19:27 1999 Doug Morris * commented out _cleanup() in mf.c because it's the only - location in all of the source code where it exists. + location in all of the source code where it exists. It was + preventing compilation on at least linux. * Added check for which is the new location where linux systems appear to be stuffing this header file. diff --git a/uip/post.c b/uip/post.c index ffd460e..a1cc05f 100644 --- a/uip/post.c +++ b/uip/post.c @@ -855,7 +855,7 @@ finish_headers (FILE *out) fprintf (out, "Date: %s\n", dtime (&tclock, 0)); if (msgid) fprintf (out, "Message-ID: <%d.%ld@%s>\n", - (int) getpid (), tclock, LocalName ()); + (int) getpid (), (long) tclock, LocalName ()); if (msgflags & MFRM) fprintf (out, "Sender: %s\n", from); else @@ -886,7 +886,7 @@ finish_headers (FILE *out) fprintf (out, "Resent-Date: %s\n", dtime (&tclock, 0)); if (msgid) fprintf (out, "Resent-Message-ID: <%d.%ld@%s>\n", - (int) getpid (), tclock, LocalName ()); + (int) getpid (), (long) tclock, LocalName ()); if (msgflags & MRFM) fprintf (out, "Resent-Sender: %s\n", from); else @@ -1131,7 +1131,7 @@ make_bcc_file (int dashstuff) fprintf (out, "Date: %s\n", dtime (&tclock, 0)); if (msgid) fprintf (out, "Message-ID: <%d.%ld@%s>\n", - (int) getpid (), tclock, LocalName ()); + (int) getpid (), (long) tclock, LocalName ()); fprintf (out, "From: %s\n", signature); if (subject) fprintf (out, "Subject: %s", subject); diff --git a/uip/termsbr.c b/uip/termsbr.c index 28aaa8f..556158d 100644 --- a/uip/termsbr.c +++ b/uip/termsbr.c @@ -21,9 +21,14 @@ # include #endif +/* is need anyway for ioctl() #ifdef GWINSZ_IN_SYS_IOCTL +*/ # include +/* #endif +*/ + #ifdef WINSIZE_IN_PTEM # include # include -- 1.7.10.4