[Libsysio-commit] HEAD: libsysio/tests test_list.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2004-02-24 15:12:44
|
Update of /cvsroot/libsysio/libsysio/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32223/tests Modified Files: test_list.c Log Message: Cleaned out all the pointer arithmetic utilizing void pointers. No longer build the empty statvfs{64} modules. All in an attempt to make the code C99 compliant. Index: test_list.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_list.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -b -B -p -r1.7 -r1.8 --- test_list.c 14 Feb 2004 19:43:00 -0000 1.7 +++ test_list.c 24 Feb 2004 14:58:26 -0000 1.8 @@ -175,7 +175,7 @@ listit(const char *path) (unsigned long long )dp->d_ino, (int )dp->d_type); cc -= dp->d_reclen; - dp = (void *)dp + dp->d_reclen; + dp = (struct dirent *)((char *)dp + dp->d_reclen); } if (!base) break; |