Procházet zdrojové kódy

- removed unused buggy code

Andrei Pelinescu-Onciul před 19 roky
rodič
revize
c7b5d75fa1
2 změnil soubory, kde provedl 1 přidání a 5 odebrání
  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
 PATCHLEVEL = 9
 SUBLEVEL = 7
-EXTRAVERSION = -pre1
+EXTRAVERSION = -pre2
 
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 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;
 	char* end;
-	char buf[128];
 
 	tmp.s = _s;
 	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;
 
-	strncpy(buf, tmp.s, tmp.len);
-	buf[tmp.len] = 0;
-
 	if ((_e->text.len == PRES_STR_LEN) && 
 	    !strncasecmp(PRES_STR, tmp.s, _e->text.len)) {
 		_e->parsed = EVENT_PRESENCE;