Return values from non-void C functions. Should fix clang build.
This commit is contained in:
parent
31b156464a
commit
997bed3d88
2 changed files with 35 additions and 1 deletions
|
@ -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
|
||||
|
|
33
mail/p5-Mail-ClamAV/patches/patch-ClamAV.pm
Normal file
33
mail/p5-Mail-ClamAV/patches/patch-ClamAV.pm
Normal file
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue