svn commit: r319225 - head/devel/libytnef/files
Baptiste Daroussin
bapt at FreeBSD.org
Mon May 27 12:35:33 UTC 2013
Author: bapt
Date: Mon May 27 12:35:33 2013
New Revision: 319225
URL: http://svnweb.freebsd.org/changeset/ports/319225
Log:
Fix build with clang
Modified:
head/devel/libytnef/files/patch-ytnef.c
Modified: head/devel/libytnef/files/patch-ytnef.c
==============================================================================
--- head/devel/libytnef/files/patch-ytnef.c Mon May 27 12:32:13 2013 (r319224)
+++ head/devel/libytnef/files/patch-ytnef.c Mon May 27 12:35:33 2013 (r319225)
@@ -1,6 +1,6 @@
---- ./ytnef.c.orig 2004-08-26 13:09:05.000000000 -0400
-+++ ./ytnef.c 2012-05-28 14:33:34.000000000 -0400
-@@ -426,6 +426,13 @@
+--- ytnef.c.orig 2004-08-26 19:09:05.000000000 +0200
++++ ytnef.c 2013-05-27 14:30:52.142061290 +0200
+@@ -426,6 +426,13 @@ void TNEFFillMapi(TNEFStruct *TNEF, BYTE
d += num + ((num % 4) ? (4 - num%4) : 0);
break;
@@ -14,7 +14,7 @@
case PT_I2:
// Read in 2 bytes, but proceed by 4 bytes
vl->size = 2;
-@@ -455,6 +462,8 @@
+@@ -455,6 +462,8 @@ void TNEFFillMapi(TNEFStruct *TNEF, BYTE
memcpy(vl->data, &temp_ddword, vl->size);
d+=8;
break;
@@ -23,3 +23,36 @@
}
if (count == (mp->count-1)) {
count = -1;
+@@ -565,7 +574,7 @@ void TNEFPrintDate(dtr Date) {
+ int TNEFHexBreakdown STD_ARGLIST {
+ int i;
+ if (TNEF->Debug == 0)
+- return;
++ return 0;
+
+ printf("%s: [%i bytes] \n", TNEFList[id].name, size);
+
+@@ -574,13 +583,14 @@ int TNEFHexBreakdown STD_ARGLIST {
+ if ((i+1)%16 == 0) printf("\n");
+ }
+ printf("\n");
++ return 0;
+ }
+
+ // -----------------------------------------------------------------------------
+ int TNEFDetailedPrint STD_ARGLIST {
+ int i;
+ if (TNEF->Debug == 0)
+- return;
++ return 0;
+
+ printf("%s: [%i bytes] \n", TNEFList[id].name, size);
+
+@@ -588,6 +598,7 @@ int TNEFDetailedPrint STD_ARGLIST {
+ printf("%c", data[i]);
+ }
+ printf("\n");
++ return 0;
+ }
+
+ // -----------------------------------------------------------------------------
More information about the svn-ports-head
mailing list