summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.syscall/statfs.c
diff options
context:
space:
mode:
authorhunt <hunt>2007-05-01 15:22:27 +0000
committerhunt <hunt>2007-05-01 15:22:27 +0000
commit732401fa3e49a2327d0023c1cdeb93a6743ab24a (patch)
tree0f60ab0692dd4debb7d97334e50c5d740cc06276 /testsuite/systemtap.syscall/statfs.c
parent7941efe597ce346eff2c177008057d274a7f3315 (diff)
downloadsystemtap-steved-732401fa3e49a2327d0023c1cdeb93a6743ab24a.tar.gz
systemtap-steved-732401fa3e49a2327d0023c1cdeb93a6743ab24a.tar.xz
systemtap-steved-732401fa3e49a2327d0023c1cdeb93a6743ab24a.zip
2007-05-01 Martin Hunt <hunt@redhat.com>
* statfs.c (main): Fix expected expression to accept both 32 and 64-bit pointers.
Diffstat (limited to 'testsuite/systemtap.syscall/statfs.c')
-rw-r--r--testsuite/systemtap.syscall/statfs.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/testsuite/systemtap.syscall/statfs.c b/testsuite/systemtap.syscall/statfs.c
index 791d49d3..ea33193b 100644
--- a/testsuite/systemtap.syscall/statfs.c
+++ b/testsuite/systemtap.syscall/statfs.c
@@ -8,26 +8,13 @@ int main()
{
ustat(42, (struct ustat *)0x12345678);
-#if __WORDSIZE == 64
- // ustat (42, 0x0000000012345678) =
-#else
- // ustat (42, 0x12345678) =
-#endif
+ // ustat (42, 0x0*12345678) =
statfs("abc", (struct statfs *)0x12345678);
-#if __WORDSIZE == 64
- // statfs ("abc", 0x0000000012345678) =
-#else
- // statfs ("abc", 0x12345678) =
-#endif
+ // statfs ("abc", 0x0*12345678) =
fstatfs(77, (struct statfs *)0x12345678);
-#if __WORDSIZE == 64
- // fstatfs (77, 0x0000000012345678) =
-#else
- // fstatfs (77, 0x12345678) =
-#endif
-
+ // fstatfs (77, 0x0*12345678) =
return 0;
}