[Linux-decnet-commit] CVS: dnprogs/nml nml.c,1.16,1.17
Brought to you by:
chrissie_c,
ph3-der-loewe
|
From: ph3-der-loewe <ph3...@us...> - 2008-11-12 23:47:56
|
Update of /cvsroot/linux-decnet/dnprogs/nml In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9448/nml Modified Files: nml.c Log Message: don't use strlen() in for(), check for null byte directly, should speed up a lot Index: nml.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/nml/nml.c,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** nml.c 5 Oct 2008 11:40:04 -0000 1.16 --- nml.c 12 Nov 2008 23:47:43 -0000 1.17 *************** *** 94,98 **** { int i; ! for (i=0; i<strlen(s); i++) s[i] = toupper(s[i]); } --- 94,98 ---- { int i; ! for (i=0; s[i]; i++) s[i] = toupper(s[i]); } |