Răsfoiți Sursa

- removed unused buggy code

Andrei Pelinescu-Onciul 19 ani în urmă
părinte
comite
c7b5d75fa1
2 a modificat fișierele cu 1 adăugiri și 5 ștergeri
  1. 1 1
      Makefile.defs
  2. 0 4
      parser/parse_event.c

+ 1 - 1
Makefile.defs

@@ -59,7 +59,7 @@ MAIN_NAME=ser
 VERSION = 0
 VERSION = 0
 PATCHLEVEL = 9
 PATCHLEVEL = 9
 SUBLEVEL = 7
 SUBLEVEL = 7
-EXTRAVERSION = -pre1
+EXTRAVERSION = -pre2
 
 
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")

+ 0 - 4
parser/parse_event.c

@@ -82,7 +82,6 @@ static inline int event_parser(char* _s, int _l, event_t* _e)
 {
 {
 	str tmp;
 	str tmp;
 	char* end;
 	char* end;
-	char buf[128];
 
 
 	tmp.s = _s;
 	tmp.s = _s;
 	tmp.len = _l;
 	tmp.len = _l;
@@ -100,9 +99,6 @@ static inline int event_parser(char* _s, int _l, event_t* _e)
 
 
 	_e->text.len = end - tmp.s;
 	_e->text.len = end - tmp.s;
 
 
-	strncpy(buf, tmp.s, tmp.len);
-	buf[tmp.len] = 0;
-
 	if ((_e->text.len == PRES_STR_LEN) && 
 	if ((_e->text.len == PRES_STR_LEN) && 
 	    !strncasecmp(PRES_STR, tmp.s, _e->text.len)) {
 	    !strncasecmp(PRES_STR, tmp.s, _e->text.len)) {
 		_e->parsed = EVENT_PRESENCE;
 		_e->parsed = EVENT_PRESENCE;