Browse code

Moved to experimental mode

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

Nigel Horne authored on 2006/10/28 19:25:23
Showing 1 changed files
... ...
@@ -36,12 +36,17 @@
36 36
  * TODO: Remove the vcard handling
37 37
  * FIXME: The code does little error checking of OOM scenarios
38 38
  */
39
-static	char	const	rcsid[] = "$Id: pst.c,v 1.33 2006/09/16 20:22:21 njh Exp $";
39
+static	char	const	rcsid[] = "$Id: pst.c,v 1.34 2006/10/28 10:25:23 njh Exp $";
40 40
 
41 41
 #if HAVE_CONFIG_H
42 42
 #include "clamav-config.h"	/* must come first */
43 43
 #endif
44 44
 
45
+#include "clamav.h"
46
+#include "others.h"
47
+
48
+#ifdef	CL_EXPERIMENTAL
49
+
45 50
 #ifdef	HAVE_UNISTD_H
46 51
 #include <unistd.h>
47 52
 #endif
... ...
@@ -53,9 +58,7 @@ static	char	const	rcsid[] = "$Id: pst.c,v 1.33 2006/09/16 20:22:21 njh Exp $";
53 53
 #include <limits.h>
54 54
 #include <time.h>
55 55
 
56
-#include "clamav.h"
57 56
 #include "cltypes.h"
58
-#include "others.h"
59 57
 
60 58
 #if	defined(C_SOLARIS) || defined(C_WINDOWS) || defined(_HPUX_SOURCE)
61 59
 typedef	uint16_t	u_int16_t;	/* should be in cltypes.h */
... ...
@@ -5629,3 +5632,14 @@ pst_decode(const char *dir, int desc)
5629 5629
 
5630 5630
 	return pst_close(&pstfile);
5631 5631
 }
5632
+
5633
+#else	/*!CL_EXPERIMENTAL*/
5634
+
5635
+int
5636
+cli_pst(const char *dir, int desc)
5637
+{
5638
+	cli_warnmsg("PST files not yet supported\n");
5639
+	return CL_EFORMAT;
5640
+}
5641
+
5642
+#endif	/*CL_EXPERIMENTAL*/