From: Jaakko H. <jhe...@us...> - 2006-04-10 16:01:50
|
Update of /cvsroot/abook/abook In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24145 Modified Files: filter.c Log Message: - whitespace cleanups Index: filter.c =================================================================== RCS file: /cvsroot/abook/abook/filter.c,v retrieving revision 1.51 retrieving revision 1.52 diff -u -d -r1.51 -r1.52 --- filter.c 14 Mar 2006 15:06:10 -0000 1.51 +++ filter.c 10 Apr 2006 16:01:31 -0000 1.52 @@ -916,7 +916,7 @@ { int i,j; - for(i=0,j=0; j < (int)strlen(buf); i++, j++) + for(i = 0,j = 0; j < (int)strlen(buf); i++, j++) buf[i] = buf[j] == '\n' ? buf[++j] : buf[j]; } @@ -929,15 +929,15 @@ if(s == NULL || *s != '(') return; - for(i=0; s[i]; i++ ) - s[i] = s[i+1]; + for(i = 0; s[i]; i++) + s[i] = s[i + 1]; if( ( tmp = strchr(s,')')) ) - *tmp=0; + *tmp = '\0'; for(i = 1; ( tmp = strchr(s, ',') ) != NULL ; i++, s = tmp + 1) if(i > MAX_LIST_ITEMS - 1) { - *tmp = 0; + *tmp = '\0'; break; } |