diff options
author | dholland <dholland@pkgsrc.org> | 2013-06-14 21:43:49 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2013-06-14 21:43:49 +0000 |
commit | 6d0c77a329b38396a2697eca4e96104a40baeed6 (patch) | |
tree | ce615b4e36e697f432fdb220f935af692f8bf659 /mail | |
parent | 2a62fca01337f647cafb8106e9e1a1c0c5da275f (diff) | |
download | pkgsrc-6d0c77a329b38396a2697eca4e96104a40baeed6.tar.gz |
Return values from non-void C functions. Should fix clang build.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/p5-Mail-ClamAV/distinfo | 3 | ||||
-rw-r--r-- | mail/p5-Mail-ClamAV/patches/patch-ClamAV.pm | 33 |
2 files changed, 35 insertions, 1 deletions
diff --git a/mail/p5-Mail-ClamAV/distinfo b/mail/p5-Mail-ClamAV/distinfo index df75f85df48..2dd636a725a 100644 --- a/mail/p5-Mail-ClamAV/distinfo +++ b/mail/p5-Mail-ClamAV/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.10 2011/12/17 16:16:37 marino Exp $ +$NetBSD: distinfo,v 1.11 2013/06/14 21:43:49 dholland Exp $ SHA1 (Mail-ClamAV-0.29.tar.gz) = ee5fe9ae950c7c420ca58760f66b2be5f700e20c RMD160 (Mail-ClamAV-0.29.tar.gz) = 98465a690fc26d5fe4aac448ca4fc3b715dba4a6 Size (Mail-ClamAV-0.29.tar.gz) = 17426 bytes +SHA1 (patch-ClamAV.pm) = 8220c5a93947b39a461e4bcb545a407e847ad048 SHA1 (patch-Makefile.PL) = 2b2a8e9b8fa306a2f7af2da5f4984b0f1ebada6e diff --git a/mail/p5-Mail-ClamAV/patches/patch-ClamAV.pm b/mail/p5-Mail-ClamAV/patches/patch-ClamAV.pm new file mode 100644 index 00000000000..477b4d45cb9 --- /dev/null +++ b/mail/p5-Mail-ClamAV/patches/patch-ClamAV.pm @@ -0,0 +1,33 @@ +$NetBSD: patch-ClamAV.pm,v 1.1 2013/06/14 21:43:49 dholland Exp $ + +Return values from non-void C functions. + +--- ClamAV.pm~ 2009-04-29 23:02:43.000000000 +0000 ++++ ClamAV.pm +@@ -286,7 +286,7 @@ int clamav_perl_maxreclevel(SV *self, .. + reclevel = cl_engine_get_num(c->root, CL_ENGINE_MAX_RECURSION, &err); + if (err != CL_SUCCESS) { + error(err); +- return; ++ return 0; + } + return reclevel; + } +@@ -313,7 +313,7 @@ int clamav_perl_maxfiles(SV *self, ...) + maxfiles = cl_engine_get_num(c->root, CL_ENGINE_MAX_FILES, &err); + if (err != CL_SUCCESS) { + error(err); +- return; ++ return 0; + } + return maxfiles; + } +@@ -334,7 +334,7 @@ int clamav_perl_maxfilesize(SV *self, .. + maxfsize = cl_engine_get_num(c->root, CL_ENGINE_MAX_FILESIZE, &err); + if (err != CL_SUCCESS) { + error(err); +- return; ++ return 0; + } + return maxfsize; + } |