<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/537a14689e6998ef58bcbfc0869d219445b1fc42">https://github.com/macports/macports-ports/commit/537a14689e6998ef58bcbfc0869d219445b1fc42</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 537a14689e6 mpack: Fix implicit declaration of functions
</span>537a14689e6 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 537a14689e6998ef58bcbfc0869d219445b1fc42
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Tue Nov 24 05:00:13 2020 -0600
<span style='display:block; white-space:pre;color:#404040;'> mpack: Fix implicit declaration of functions
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/61632
</span>---
mail/mpack/Portfile | 13 +-
mail/mpack/files/implicit.patch | 287 +++++++++++++++++++++++++++++++++++++
mail/mpack/files/patch-TMPDIR.diff | 4 +-
mail/mpack/files/uudecode.c.patch | 11 --
4 files changed, 297 insertions(+), 18 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/mpack/Portfile b/mail/mpack/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2512db8e390..b544de8cc2b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mail/mpack/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mail/mpack/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,19 +3,22 @@ PortSystem 1.0
</span> name mpack
version 1.6
revision 1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 a83330aa15437dc3ca6475cbf6e35b09ab9cef07 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 274108bb3a39982a4efc14fb3a65298e66c8e71367c3dabf49338162d207a94c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 179850
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> license BSD
description mime mail packing and unpacking
long_description mpack and munpack provide command line tools to \
pack and unpack multipart mime mail messages
<span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://ftp.andrew.cmu.edu/pub/mpack/
</span> platforms darwin
categories mail
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites http://ftp.andrew.cmu.edu/pub/mpack/ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ftp://ftp.andrew.cmu.edu/pub/mpack/
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums md5 a70fa5afa76539a9afb70b9d81568fe8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://en.wikipedia.org/wiki/Mpack_(Unix)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites macports_distfiles
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-TMPDIR.diff uudecode.c.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles implicit.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-TMPDIR.diff
</span>
configure.args --mandir=${prefix}/share/man
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/mpack/files/implicit.patch b/mail/mpack/files/implicit.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..2a09848c499
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mail/mpack/files/implicit.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,287 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix a zillion implicit declaration of function errors.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Taken from https://sources.debian.org/patches/mpack/1.6-8.2/01-legacy.patch/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+but changes not related to fixing build errors have been removed.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- part.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ part.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -27,6 +27,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "part.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -58,7 +59,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Close and free 'part'.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-int part_close(struct part *part)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++void part_close(struct part *part)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fclose(part->infile);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (part->buf) free(part->buf);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -77,8 +78,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Add to 'part' the multipart boundary 'boundary'.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-part_addboundary(struct part *part, char *boundary)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++void part_addboundary(struct part *part, char *boundary)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Grow boundary array if necessary */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (part->boundary_num == part->boundary_alloc) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -165,8 +165,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Leaves room in the input buffer to push back an additional single
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * character using the prot_ungetc() macro.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-part_ungets(char *s, struct part *part)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++void part_ungets(char *s, struct part *part)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int len = strlen(s);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int i;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- decode.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ decode.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -26,8 +26,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * SOFTWARE. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <ctype.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <unistd.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "xmalloc.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "common.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "part.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -37,6 +39,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern FILE *os_newtypedfile(char *fname, char *contentType, int flags, params contentParams);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern FILE *os_createnewfile(char *fname);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern char *md5contextTo64(MD5_CTX *context);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void warn(char *s);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void os_perror(char *str);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void chat(char *s);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void os_donewithdir(char *dir);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void os_warnMD5mismatch(void);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void os_closetypedfile(FILE *outfile);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern int part_depth(struct part *part);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void part_ungets(char *s, struct part *part);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void part_close(struct part *part);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern int part_fill(struct part *part);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void part_addboundary(struct part *part, char *boundary);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern int part_readboundary(struct part *part);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* The possible content transfer encodings */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ enum encoding { enc_none, enc_qp, enc_base64 };
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -49,6 +64,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void from64(struct part *inpart, FILE *outfile, char **digestp, int suppressCR);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void fromqp(struct part *inpart, FILE *outfile, char **digestp);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void fromnone(struct part *inpart, FILE *outfile, char **digestp);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int handlePartial(struct part *inpart, char *headers, params contentParams,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ int extractText);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int ignoreMessage(struct part *inpart);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int handleMultipart(struct part *inpart, char *contentType,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ params contentParams, int extractText);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int handleUuencode(struct part *inpart, char *subject, int extractText);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int handleText(struct part *inpart, enum encoding contentEncoding);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int saveToFile(struct part *inpart, int inAppleDouble, char *contentType,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ params contentParams, enum encoding contentEncoding,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ char *contentDisposition, char *contentMD5);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Read and handle an RFC 822 message from the body-part 'inpart'.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- xmalloc.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ xmalloc.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -23,8 +23,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * SOFTWARE.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-extern char *malloc(), *realloc();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char *xmalloc (int size)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- unixos.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ unixos.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -23,24 +23,30 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * SOFTWARE.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <ctype.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <errno.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/types.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <sys/stat.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/param.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <time.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <netdb.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <fcntl.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <unistd.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "xmalloc.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "common.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "part.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void warn(char *s);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifndef MAXHOSTNAMELEN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define MAXHOSTNAMELEN 64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifndef errno
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern int errno;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-extern char *malloc();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-extern char *getenv();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int overwrite_files = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int didchat;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- unixunpk.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ unixunpk.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -23,17 +23,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * SOFTWARE.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <getopt.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <unistd.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "version.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "part.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-extern int optind;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-extern char *optarg;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern int overwrite_files;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern int didchat;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int quiet;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void usage(void);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int handleMessage(struct part *inpart, char *defaultContentType,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ int inAppleDouble, int extractText);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int main(int argc, char **argv)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- magic.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ magic.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -23,6 +23,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * SOFTWARE.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Description of the various file formats and their magic numbers */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct magic {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- uudecode.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ uudecode.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -23,8 +23,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * SOFTWARE.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <ctype.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <unistd.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "xmalloc.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "common.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "part.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -32,9 +34,25 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern char *os_idtodir(char *id);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern FILE *os_newtypedfile(char *fname, char *contentType, int flags, params contentParams);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern FILE *os_createnewfile(char *fname);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern int os_binhex(struct part *inpart, int part, int nparts);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void os_closetypedfile(FILE *outfile);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void os_donewithdir(char *dir);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void os_perror(char *str);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void chat(char *s);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void part_ungets(char *s, struct part *part);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void part_close(struct part *part);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern int handleMessage(struct part *inpart, char *defaultContentType,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ int inAppleDouble, int extractText);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static FILE *startDescFile(char *fname);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++static void uudecodeline(char *line, FILE *outfile);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int parseSubject(char *subject, char **fnamep, int *partp, int *npartsp);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int saveUuFile(struct part *inpart, char *fname, int part, int nparts,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ char *firstline);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int descEnd(char *line);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int uudecodefiles(char *dir, int nparts);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Length of a normal uuencoded line, including newline */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define UULENGTH 62
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -826,7 +844,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Decode a uuencoded line to 'outfile'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-int uudecodeline(char *line, FILE *outfile)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++static void uudecodeline(char *line, FILE *outfile)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int c, len;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- md5.h.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ md5.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -34,6 +34,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define PROTOTYPES 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdint.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* POINTER defines a generic pointer type */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef unsigned char *POINTER;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- unixpk.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ unixpk.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -23,23 +23,27 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * SOFTWARE.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <errno.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <getopt.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <sys/types.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <sys/wait.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <unistd.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "common.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "version.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "xmalloc.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define MAXADDRESS 100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-extern char *getenv();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-extern int errno;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-extern int optind;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-extern char *optarg;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void usage(void);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void sendmail(FILE *infile, char **addr, int start);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void inews(FILE *infile);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++void os_perror(char *str);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int encode(FILE *infile, FILE *applefile, char *fname, FILE *descfile,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ char *subject, char *headers, long int maxsize,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ char *typeoverride, char *outfname);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int main(int argc, char **argv)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- encode.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ encode.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -23,12 +23,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * SOFTWARE.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern char *magic_look(FILE *infile);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern char *os_genid(void);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern FILE *os_createnewfile(char *fname);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern char *md5digest(FILE *infile, long int *len);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern void os_perror(char *str);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern int to64(FILE *infile, FILE *outfile, long int limit);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define NUMREFERENCES 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/mpack/files/patch-TMPDIR.diff b/mail/mpack/files/patch-TMPDIR.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index fbe6d953783..f9242293704 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mail/mpack/files/patch-TMPDIR.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mail/mpack/files/patch-TMPDIR.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,7 +22,7 @@
</span> =pc os2
--- unixos.c.orig 2009-01-03 23:01:38.000000000 +0000
+++ unixos.c 2009-01-03 23:04:09.000000000 +0000
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -90,7 +90,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -96,7 +96,7 @@
</span> strcpy(buf, getenv("TMPDIR"));
}
else {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,7 +33,7 @@
</span> p = getenv("USER");
--- unixpk.c.orig 2009-01-03 23:01:52.000000000 +0000
+++ unixpk.c 2009-01-03 23:04:35.000000000 +0000
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -164,7 +164,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -168,7 +168,7 @@
</span> strcpy(fnamebuf, getenv("TMPDIR"));
}
else {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/mpack/files/uudecode.c.patch b/mail/mpack/files/uudecode.c.patch
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 84da0433741..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mail/mpack/files/uudecode.c.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,11 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- uudecode.c.orig 2003-07-22 06:46:37.000000000 +1000
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ uudecode.c 2012-08-01 20:05:39.000000000 +1000
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -845,7 +845,7 @@ int uudecodeline(char *line, FILE *outfi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- line += 4;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- return;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span></pre><pre style='margin:0'>
</pre>