From: Wes C. <wes...@us...> - 2006-05-06 21:55:57
|
Update of /cvsroot/radmind/radmind In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27896 Modified Files: fsdiff.c lapply.c Log Message: Fix for [ 1479940 ] Mistaken comparison of function return For good measure, I reviewed all "switch" operations in the code base. Index: lapply.c =================================================================== RCS file: /cvsroot/radmind/radmind/lapply.c,v retrieving revision 1.131 retrieving revision 1.132 diff -C2 -d -r1.131 -r1.132 *** lapply.c 20 Mar 2006 18:16:46 -0000 1.131 --- lapply.c 6 May 2006 21:55:52 -0000 1.132 *************** *** 172,176 **** } else { switch ( retr( sn, pathdesc, path, (char *)&temppath, 0600, ! strtoofft( targv[ 6 ], NULL, 10 ), cksum_b64 ) != 0 ) { case -1: /* Network problem */ --- 172,176 ---- } else { switch ( retr( sn, pathdesc, path, (char *)&temppath, 0600, ! strtoofft( targv[ 6 ], NULL, 10 ), cksum_b64 )) { case -1: /* Network problem */ Index: fsdiff.c =================================================================== RCS file: /cvsroot/radmind/radmind/fsdiff.c,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -d -r1.76 -r1.77 *** fsdiff.c 17 Feb 2006 20:30:01 -0000 1.76 --- fsdiff.c 6 May 2006 21:55:52 -0000 1.77 *************** *** 113,117 **** strcpy( temp, tran->t_pinfo.pi_name ); ! switch ( radstat( temp, &st0, &type0, &afinfo0 ) < 0 ) { case 0: break; --- 113,117 ---- strcpy( temp, tran->t_pinfo.pi_name ); ! switch ( radstat( temp, &st0, &type0, &afinfo0 )) { case 0: break; *************** *** 178,182 **** switch ( radstat( new->fl_name, &new->fl_stat, &new->fl_type, ! &new->fl_afinfo ) < 0 ) { case 0: break; --- 178,182 ---- switch ( radstat( new->fl_name, &new->fl_stat, &new->fl_type, ! &new->fl_afinfo )) { case 0: break; |