diff options
author | joerg <joerg> | 2012-11-19 02:56:05 +0000 |
---|---|---|
committer | joerg <joerg> | 2012-11-19 02:56:05 +0000 |
commit | ae253c5a57200dffceca607efee76f2a7e6eae51 (patch) | |
tree | 8316452a1a22a6f590c5d4d57190ab40f545bfd1 /mail | |
parent | eb954f3e4295005809d73f9fe127c7b45bbaa5c5 (diff) | |
download | pkgsrc-ae253c5a57200dffceca607efee76f2a7e6eae51.tar.gz |
Always return a value in a non-void function.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/libytnef/distinfo | 3 | ||||
-rw-r--r-- | mail/libytnef/patches/patch-ytnef.c | 37 |
2 files changed, 39 insertions, 1 deletions
diff --git a/mail/libytnef/distinfo b/mail/libytnef/distinfo index 319f9e97b5b..ac789535e4a 100644 --- a/mail/libytnef/distinfo +++ b/mail/libytnef/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1 2008/01/09 03:53:10 smb Exp $ +$NetBSD: distinfo,v 1.2 2012/11/19 02:56:05 joerg Exp $ SHA1 (libytnef-1.5.tar.gz) = f04075187accaa82346ed873af8c61755de781cc RMD160 (libytnef-1.5.tar.gz) = c4754814124f4fbbf6d3385cded5e6f03ff09fcc Size (libytnef-1.5.tar.gz) = 212412 bytes +SHA1 (patch-ytnef.c) = 82755fc0530ba43520de2a5b1fda3765648d1d70 diff --git a/mail/libytnef/patches/patch-ytnef.c b/mail/libytnef/patches/patch-ytnef.c new file mode 100644 index 00000000000..4bde98fef93 --- /dev/null +++ b/mail/libytnef/patches/patch-ytnef.c @@ -0,0 +1,37 @@ +$NetBSD: patch-ytnef.c,v 1.1 2012/11/19 02:56:05 joerg Exp $ + +--- ytnef.c.orig 2012-11-18 23:24:09.000000000 +0000 ++++ ytnef.c +@@ -565,7 +565,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 +574,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 +589,7 @@ int TNEFDetailedPrint STD_ARGLIST { + printf("%c", data[i]); + } + printf("\n"); ++ return 0; + } + + // ----------------------------------------------------------------------------- |