summaryrefslogtreecommitdiff
path: root/test/misc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-29 03:18:59 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-29 03:18:59 +0000
commit9a7cfea9e5f6a8289e802dc6d39be521760bc525 (patch)
tree045af3bf51bab4da2b715f462452afbaebb6de13 /test/misc
parentdf80b74f4b2d282ae9b07e951a798936bb706a48 (diff)
fixup shadowed warnings
Diffstat (limited to 'test/misc')
-rw-r--r--test/misc/tst-seekdir.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/misc/tst-seekdir.c b/test/misc/tst-seekdir.c
index 5a2810abd..7dd5d2e85 100644
--- a/test/misc/tst-seekdir.c
+++ b/test/misc/tst-seekdir.c
@@ -13,8 +13,7 @@ main (int argc, char *argv[])
int i = 0;
int result = 0;
struct dirent *dp;
- long int save0;
- long int rewind;
+ off_t save0, rewind_ret;
dirp = opendir (".");
if (dirp == NULL)
@@ -63,13 +62,13 @@ main (int argc, char *argv[])
/* Check rewinddir */
rewinddir (dirp);
- rewind = telldir (dirp);
- if (rewind == -1)
+ rewind_ret = telldir (dirp);
+ if (rewind_ret == -1)
{
printf ("telldir failed: %s\n", strerror(errno));
result = 1;
}
- else if (save0 != rewind)
+ else if (save0 != rewind_ret)
{
printf ("rewinddir didn't reset directory stream\n");
result = 1;