From owner-svn-ports-all@FreeBSD.ORG Sun Dec 30 22:51:41 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3AC6115D; Sun, 30 Dec 2012 22:51:41 +0000 (UTC) (envelope-from johans@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 140C28FC08; Sun, 30 Dec 2012 22:51:41 +0000 (UTC) Received: from svn.freebsd.org (svn.FreeBSD.org [8.8.178.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBUMpev9097137; Sun, 30 Dec 2012 22:51:40 GMT (envelope-from johans@svn.freebsd.org) Received: (from johans@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBUMpegq097134; Sun, 30 Dec 2012 22:51:40 GMT (envelope-from johans@svn.freebsd.org) Message-Id: <201212302251.qBUMpegq097134@svn.freebsd.org> From: Johan van Selst Date: Sun, 30 Dec 2012 22:51:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r309698 - in head/converters/mmencode: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Dec 2012 22:51:41 -0000 Author: johans Date: Sun Dec 30 22:51:40 2012 New Revision: 309698 URL: http://svnweb.freebsd.org/changeset/ports/309698 Log: - Fix compilation with clang: Make some implicit function types and references explicit - Adopt port Added: head/converters/mmencode/files/patch-codes.c (contents, props changed) head/converters/mmencode/files/patch-mmencode.c (contents, props changed) Modified: head/converters/mmencode/Makefile Modified: head/converters/mmencode/Makefile ============================================================================== --- head/converters/mmencode/Makefile Sun Dec 30 21:40:57 2012 (r309697) +++ head/converters/mmencode/Makefile Sun Dec 30 22:51:40 2012 (r309698) @@ -1,9 +1,5 @@ -# New ports collection makefile for: mmencode -# Date created: 30 September 1999 -# Whom: kbyanc -# +# Created by: kbyanc # $FreeBSD$ -# PORTNAME= mmencode PORTVERSION= 2.7 @@ -13,7 +9,7 @@ MASTER_SITES= ftp://ftp.delegate.org/pub DISTNAME= mm${PORTVERSION} EXTRACT_SUFX= .tar.Z -MAINTAINER= ports@FreeBSD.org +MAINTAINER= johans@FreeBSD.org COMMENT= Translate to and from mail-oriented encoding formats WRKSRC= ${WRKDIR}/${DISTNAME}/src/metamail Added: head/converters/mmencode/files/patch-codes.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/converters/mmencode/files/patch-codes.c Sun Dec 30 22:51:40 2012 (r309698) @@ -0,0 +1,85 @@ +--- codes.c.orig 1993-09-20 15:13:22.000000000 +0200 ++++ codes.c 2012-12-30 23:36:01.000000000 +0100 +@@ -15,6 +15,7 @@ WITHOUT ANY EXPRESS OR IMPLIED WARRANTIE + #include + #include + #include ++#include + + extern char *index(); + static char basis_64[] = +@@ -46,7 +47,9 @@ char c; + /* the following gets a character, but fakes it properly into two chars if there's a newline character */ + static int InNewline=0; + +-int nextcharin(infile, PortableNewlines) ++static void output64chunk(int c1, int c2, int c3, int pads, FILE *outfile); ++ ++static int nextcharin(infile, PortableNewlines) + FILE *infile; + int PortableNewlines; + { +@@ -69,6 +72,7 @@ int PortableNewlines; + #endif + } + ++void + to64(infile, outfile, PortableNewlines) + FILE *infile, *outfile; + int PortableNewlines; +@@ -97,6 +101,7 @@ int PortableNewlines; + fflush(outfile); + } + ++void + output64chunk(c1, c2, c3, pads, outfile) + FILE *outfile; + { +@@ -114,6 +119,7 @@ FILE *outfile; + } + } + ++static int + PendingBoundary(s, Boundaries, BoundaryCt) + char *s; + char **Boundaries; +@@ -140,6 +146,7 @@ int *BoundaryCt; + static int CRpending = 0; + + #ifdef NEWLINE_CHAR ++static void + almostputc(c, outfile, PortableNewlines) + int c; + FILE *outfile; +@@ -165,6 +172,7 @@ int PortableNewlines; + } + } + #else ++static void + almostputc(c, outfile, PortableNewlines) + int c; + FILE *outfile; +@@ -174,6 +182,7 @@ int PortableNewlines; + } + #endif + ++void + from64(infile, outfile, boundaries, boundaryct, PortableNewlines) + FILE *infile, *outfile; + char **boundaries; +@@ -275,6 +284,7 @@ char c; + } + */ + ++void + toqp(infile, outfile) + FILE *infile, *outfile; + { +@@ -350,6 +360,7 @@ FILE *infile, *outfile; + } + } + ++void + fromqp(infile, outfile, boundaries, boundaryct) + FILE *infile, *outfile; + char **boundaries; Added: head/converters/mmencode/files/patch-mmencode.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/converters/mmencode/files/patch-mmencode.c Sun Dec 30 22:51:40 2012 (r309698) @@ -0,0 +1,23 @@ +--- mmencode.c.orig 2012-12-30 23:29:36.000000000 +0100 ++++ mmencode.c 2012-12-30 23:30:33.000000000 +0100 +@@ -14,6 +14,7 @@ WITHOUT ANY EXPRESS OR IMPLIED WARRANTIE + */ + #include + #include ++#include + #ifdef MSDOS + #include + #endif +@@ -21,6 +22,12 @@ WITHOUT ANY EXPRESS OR IMPLIED WARRANTIE + #define BASE64 1 + #define QP 2 /* quoted-printable */ + ++extern void to64(FILE *infile, FILE *outfile, int PortableNewlines); ++extern void from64(FILE *infile, FILE *outfile, char **boundaries, int *boundaryct, int PortableNewlines); ++extern void toqp(FILE *infile, FILE *outfile); ++extern void fromqp(FILE *infile, FILE *outfile, char **boundaries, int *boundaryct); ++ ++int + main(argc, argv) + int argc; + char **argv;