Browse code

-workaround to get rid of a linux specific variable (daylight) - spotted by Jan

Bogdan-Andrei Iancu authored on 12/11/2003 17:11:30
Showing 1 changed files
... ...
@@ -42,7 +42,6 @@
42 42
 #include "../fifo_server.h"
43 43
 #include "../dprint.h"
44 44
 #include "../str.h"
45
-//#include "../ut.h"
46 45
 #include "db.h"
47 46
 
48 47
 #define MAX_SIZE_LINE 512
... ...
@@ -281,11 +280,11 @@ static inline int parse_db_value( str *s, db_val_t *val, str **ret_s)
281 280
 		/* get seconds */
282 281
 		get_int( p, end, td.tm_sec, n,"Missing seconds in date format",error);
283 282
 		if (p!=end) goto date_error;
284
-		td.tm_isdst = daylight;
283
+		td.tm_isdst = -1 ; /*daylight*/
285 284
 		/* fill the val struct */
286 285
 		val->type = DB_DATETIME;
287 286
 		val->val.time_val = mktime( &td );
288
-		DBG("DBG: <%.*s> is %s\n",s->len,s->s,ctime(&val->val.time_val));
287
+		/*DBG("DBG: <%.*s> is %s\n",s->len,s->s,ctime(&val->val.time_val));*/
289 288
 	} else if ( (*(p=s->s)=='+') || (*p=='-') || isdigit(*p) ) {
290 289
 		/* can be a DB_INT / DB_DOUBLE / DB_BITMAP value */
291 290
 		if (sgn_str2float( s, &nr, &nr_type)!=0) {