Browse code

Comment about endian

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1436 77e5149b-7576-45b1-b177-96237e5ba77b

Nigel Horne authored on 2005/03/26 06:58:01
Showing 1 changed files
... ...
@@ -20,7 +20,7 @@
20 20
 #include "clamav-config.h"
21 21
 #endif
22 22
 
23
-static	char	const	rcsid[] = "$Id: tnef.c,v 1.6 2005/03/25 19:47:35 nigelhorne Exp $";
23
+static	char	const	rcsid[] = "$Id: tnef.c,v 1.7 2005/03/25 21:58:01 nigelhorne Exp $";
24 24
 
25 25
 #include <stdio.h>
26 26
 
... ...
@@ -53,6 +53,7 @@ static	int	tnef_attachment(int desc, const char *dir, fileblob **fbref);
53 53
 #define	attOEMCODEPAGE	0x9007
54 54
 
55 55
 /* FIXME: use stdio */
56
+/* FIXME: only works on little endian machines */
56 57
 int
57 58
 cli_tnef(const char *dir, int desc)
58 59
 {
... ...
@@ -67,7 +68,8 @@ cli_tnef(const char *dir, int desc)
67 67
 	if(cli_readn(desc, &i32, sizeof(uint32_t)) != sizeof(uint32_t))
68 68
 		return CL_EIO;
69 69
 
70
-#ifdef	WORDS_BIGENDIAN
70
+#if	WORDS_BIGENDIAN == 0
71
+	/* little endian */
71 72
 	if(i32 != TNEF_SIGNATURE)
72 73
 		return CL_EFORMAT;
73 74
 #else