freebsd-ports/news/cnews/files/patch-canonhdr.c
Dirk Meyer ee16702944 - revert r346880
Approved by:	bapt

- update LICENSE
- fix build with new clang
2014-03-19 14:09:29 +00:00

19 lines
479 B
C

--- util/canonhdr.c.orig 1995-04-28 02:51:38.000000000 +0200
+++ util/canonhdr.c 2014-02-07 16:47:48.000000000 +0100
@@ -92,7 +92,7 @@
static char expiresnm[] = "Expires: ";
if (!washdr)
- return;
+ return 0;
while ((hdr = gethdr(in, &nolimit, &ishdr)) != NULL && ishdr) {
register char *cp;
static char canonmsgid[] = "Message-Id:";
@@ -141,6 +141,7 @@
(void) fputs(datenm, stdout);
(void) fputs(canondate("now", "now"), stdout);
}
+ return 0;
}
int