[Linux-decnet-commit] CVS: dnprogs/librms parse.cc,1.8,1.9
Brought to you by:
chrissie_c,
ph3-der-loewe
|
From: ph3-der-loewe <ph3...@us...> - 2008-11-12 23:48:02
|
Update of /cvsroot/linux-decnet/dnprogs/librms In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9448/librms Modified Files: parse.cc Log Message: don't use strlen() in for(), check for null byte directly, should speed up a lot Index: parse.cc =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/librms/parse.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** parse.cc 20 Aug 2008 12:43:59 -0000 1.8 --- parse.cc 12 Nov 2008 23:47:43 -0000 1.9 *************** *** 295,299 **** static void makelower(char *s) { ! for (unsigned int i=0; i<strlen(s); i++) s[i] = tolower(s[i]); } --- 295,299 ---- static void makelower(char *s) { ! for (unsigned int i=0; s[i]; i++) s[i] = tolower(s[i]); } |