git-svn: trunk@1748
Tomasz Kojm authored on 2005/11/11 03:31:11... | ... |
@@ -187,8 +187,6 @@ struct cl_cvd { |
187 | 187 |
}; |
188 | 188 |
|
189 | 189 |
/* file scanning */ |
190 |
-extern int cl_scanbuff(const char *buffer, unsigned int length, const char **virname, const struct cl_engine *engine); |
|
191 |
- |
|
192 | 190 |
extern int cl_scandesc(int desc, const char **virname, unsigned long int *scanned, const struct cl_engine *engine, const struct cl_limits *limits, unsigned int options); |
193 | 191 |
|
194 | 192 |
extern int cl_scanfile(const char *filename, const char **virname, unsigned long int *scanned, const struct cl_engine *engine, const struct cl_limits *limits, unsigned int options); |
... | ... |
@@ -78,12 +78,12 @@ int cli_scanbuff(const char *buffer, unsigned int length, const char **virname, |
78 | 78 |
if(troot) { |
79 | 79 |
|
80 | 80 |
if((partcnt = (int *) cli_calloc(troot->ac_partsigs + 1, sizeof(int))) == NULL) { |
81 |
- cli_dbgmsg("cl_scanbuff(): unable to cli_calloc(%d, %d)\n", troot->ac_partsigs + 1, sizeof(int)); |
|
81 |
+ cli_dbgmsg("cli_scanbuff(): unable to cli_calloc(%d, %d)\n", troot->ac_partsigs + 1, sizeof(int)); |
|
82 | 82 |
return CL_EMEM; |
83 | 83 |
} |
84 | 84 |
|
85 | 85 |
if((partoff = (unsigned long int *) cli_calloc(troot->ac_partsigs + 1, sizeof(unsigned long int))) == NULL) { |
86 |
- cli_dbgmsg("cl_scanbuff(): unable to cli_calloc(%d, %d)\n", troot->ac_partsigs + 1, sizeof(unsigned long int)); |
|
86 |
+ cli_dbgmsg("cli_scanbuff(): unable to cli_calloc(%d, %d)\n", troot->ac_partsigs + 1, sizeof(unsigned long int)); |
|
87 | 87 |
free(partcnt); |
88 | 88 |
return CL_EMEM; |
89 | 89 |
} |
... | ... |
@@ -99,12 +99,12 @@ int cli_scanbuff(const char *buffer, unsigned int length, const char **virname, |
99 | 99 |
} |
100 | 100 |
|
101 | 101 |
if((partcnt = (int *) cli_calloc(groot->ac_partsigs + 1, sizeof(int))) == NULL) { |
102 |
- cli_dbgmsg("cl_scanbuff(): unable to cli_calloc(%d, %d)\n", groot->ac_partsigs + 1, sizeof(int)); |
|
102 |
+ cli_dbgmsg("cli_scanbuff(): unable to cli_calloc(%d, %d)\n", groot->ac_partsigs + 1, sizeof(int)); |
|
103 | 103 |
return CL_EMEM; |
104 | 104 |
} |
105 | 105 |
|
106 | 106 |
if((partoff = (unsigned long int *) cli_calloc(groot->ac_partsigs + 1, sizeof(unsigned long int))) == NULL) { |
107 |
- cli_dbgmsg("cl_scanbuff(): unable to cli_calloc(%d, %d)\n", groot->ac_partsigs + 1, sizeof(unsigned long int)); |
|
107 |
+ cli_dbgmsg("cli_scanbuff(): unable to cli_calloc(%d, %d)\n", groot->ac_partsigs + 1, sizeof(unsigned long int)); |
|
108 | 108 |
free(partcnt); |
109 | 109 |
return CL_EMEM; |
110 | 110 |
} |
... | ... |
@@ -117,11 +117,6 @@ int cli_scanbuff(const char *buffer, unsigned int length, const char **virname, |
117 | 117 |
return ret; |
118 | 118 |
} |
119 | 119 |
|
120 |
-int cl_scanbuff(const char *buffer, unsigned int length, const char **virname, const struct cl_engine *engine) |
|
121 |
-{ |
|
122 |
- return cli_scanbuff(buffer, length, virname, engine, 0); |
|
123 |
-} |
|
124 |
- |
|
125 | 120 |
static struct cli_md5_node *cli_vermd5(const unsigned char *md5, const struct cl_engine *engine) |
126 | 121 |
{ |
127 | 122 |
struct cli_md5_node *pt; |