Browse code

- removed unused buggy code

Andrei Pelinescu-Onciul authored on 30/03/2006 10:39:36
Showing 2 changed files
... ...
@@ -59,7 +59,7 @@ MAIN_NAME=ser
59 59
 VERSION = 0
60 60
 PATCHLEVEL = 9
61 61
 SUBLEVEL = 7
62
-EXTRAVERSION = -pre1
62
+EXTRAVERSION = -pre2
63 63
 
64 64
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
65 65
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")
... ...
@@ -82,7 +82,6 @@ static inline int event_parser(char* _s, int _l, event_t* _e)
82 82
 {
83 83
 	str tmp;
84 84
 	char* end;
85
-	char buf[128];
86 85
 
87 86
 	tmp.s = _s;
88 87
 	tmp.len = _l;
... ...
@@ -100,9 +99,6 @@ static inline int event_parser(char* _s, int _l, event_t* _e)
100 99
 
101 100
 	_e->text.len = end - tmp.s;
102 101
 
103
-	strncpy(buf, tmp.s, tmp.len);
104
-	buf[tmp.len] = 0;
105
-
106 102
 	if ((_e->text.len == PRES_STR_LEN) && 
107 103
 	    !strncasecmp(PRES_STR, tmp.s, _e->text.len)) {
108 104
 		_e->parsed = EVENT_PRESENCE;