git-svn: trunk@2828
Tomasz Kojm authored on 2007/02/22 06:07:23... | ... |
@@ -503,7 +503,11 @@ int cli_initengine(struct cl_engine **engine, unsigned int options) |
503 | 503 |
|
504 | 504 |
|
505 | 505 |
if(!*engine) { |
506 |
+#ifdef CL_EXPERIMENTAL |
|
507 |
+ cli_dbgmsg("Initializing the engine ("VERSION"-exp)\n"); |
|
508 |
+#else |
|
506 | 509 |
cli_dbgmsg("Initializing the engine ("VERSION")\n"); |
510 |
+#endif |
|
507 | 511 |
|
508 | 512 |
*engine = (struct cl_engine *) cli_calloc(1, sizeof(struct cl_engine)); |
509 | 513 |
if(!*engine) { |
... | ... |
@@ -49,6 +49,12 @@ |
49 | 49 |
#define O_BINARY 0 |
50 | 50 |
#endif |
51 | 51 |
|
52 |
+#ifdef CL_EXPERIMENTAL |
|
53 |
+#define VERSION_EXP VERSION"-exp" |
|
54 |
+#else |
|
55 |
+#define VERSION_EXP VERSION |
|
56 |
+#endif |
|
57 |
+ |
|
52 | 58 |
char *freshdbdir(void) |
53 | 59 |
{ |
54 | 60 |
struct cl_cvd *d1, *d2; |
... | ... |
@@ -119,10 +125,11 @@ void print_version(void) |
119 | 119 |
|
120 | 120 |
if((daily = cl_cvdhead(path))) { |
121 | 121 |
time_t t = (time_t) daily->stime; |
122 |
- printf("ClamAV "VERSION"/%d/%s", daily->version, ctime(&t)); |
|
122 |
+ |
|
123 |
+ printf("ClamAV "VERSION_EXP"/%d/%s", daily->version, ctime(&t)); |
|
123 | 124 |
cl_cvdfree(daily); |
124 | 125 |
} else { |
125 |
- printf("ClamAV "VERSION"\n"); |
|
126 |
+ printf("ClamAV "VERSION_EXP"\n"); |
|
126 | 127 |
} |
127 | 128 |
|
128 | 129 |
free(path); |