Add compatibility to the debug package

git-svn: trunk@2368
remotes/push_mirror/metadata
Nigel Horne 19 years ago
parent 0b7cf3fbae
commit edee07004b
  1. 18
      clamav-devel/libclamav/mbox.c
  2. 22
      clamav-devel/libclamav/message.c

@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
static char const rcsid[] = "$Id: mbox.c,v 1.352 2006/10/06 15:25:15 njh Exp $";
static char const rcsid[] = "$Id: mbox.c,v 1.353 2006/10/10 21:28:00 njh Exp $";
#ifdef _MSC_VER
#include <winsock.h> /* only needed in CL_EXPERIMENTAL */
@ -94,16 +94,16 @@ static void print_trace(int use_syslog);
#define strtok_r(a,b,c) strtok(a,b)
#endif
/* required for AIX and Tru64 */
#ifdef TRUE
#undef TRUE
#ifdef C_LINUX /* Others??? */
#include <stdbool.h>
#else
#ifdef FALSE
typedef unsigned char bool;
#else
typedef enum { FALSE = 0, TRUE = 1 } bool;
#endif
#ifdef FALSE
#undef FALSE
#endif
typedef enum { FALSE = 0, TRUE = 1 } bool;
#ifndef isblank
#define isblank(c) (((c) == ' ') || ((c) == '\t'))
#endif
@ -5006,7 +5006,7 @@ isBounceStart(const char *line)
return FALSE;
if((strncmp(line, ">From ", 6) == 0) && !isalnum(line[6]))
return FALSE;*/
if(cli_filetype(line, strlen(line)) != CL_TYPE_MAIL)
if(cli_filetype((const unsigned char *)line, strlen(line)) != CL_TYPE_MAIL)
return FALSE;
if((strncmp(line, "From ", 5) == 0) ||

@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
static char const rcsid[] = "$Id: message.c,v 1.188 2006/10/06 21:33:33 njh Exp $";
static char const rcsid[] = "$Id: message.c,v 1.189 2006/10/10 21:28:00 njh Exp $";
#if HAVE_CONFIG_H
#include "clamav-config.h"
@ -54,21 +54,21 @@ static char const rcsid[] = "$Id: message.c,v 1.188 2006/10/06 21:33:33 njh Exp
#include "mbox.h"
/* required for AIX and Tru64 */
#ifdef TRUE
#undef TRUE
#endif
#ifdef FALSE
#undef FALSE
#endif
#ifndef isblank
#define isblank(c) (((c) == ' ') || ((c) == '\t'))
#endif
#define RFC2045LENGTH 76 /* maximum number of characters on a line */
typedef enum { FALSE = 0, TRUE = 1 } bool;
#ifdef C_LINUX /* Others??? */
#include <stdbool.h>
#else
#ifdef FALSE
typedef unsigned char bool;
#else
typedef enum { FALSE = 0, TRUE = 1 } bool;
#endif
#endif
static void messageIsEncoding(message *m);
static unsigned char *decode(message *m, const char *in, unsigned char *out, unsigned char (*decoder)(char), bool isFast);
@ -972,7 +972,7 @@ messageIsEncoding(message *m)
m->encoding = m->body_last;
else if((m->bounce == NULL) &&
(strncasecmp(line, "Received: ", 10) == 0) &&
(cli_filetype(line, strlen(line)) == CL_TYPE_MAIL))
(cli_filetype((const unsigned char *)line, strlen(line)) == CL_TYPE_MAIL))
m->bounce = m->body_last;
/* Not needed with fast track visa technology */
/*else if((m->uuencode == NULL) && isuuencodebegin(line))

Loading…
Cancel
Save