summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-01-09 05:49:49 +0000
committerUlrich Drepper <drepper@redhat.com>2008-01-09 05:49:49 +0000
commite219f1c1b2a5a2e4f248714fdc93d031cdc5ee6a (patch)
treefa6765a61fa75066ddc0dd271135025748a7faf6 /tests
parent9fbf0d9bdcc9043491e7ea53e769506743160760 (diff)
downloadelfutils-e219f1c1b2a5a2e4f248714fdc93d031cdc5ee6a.tar.gz
propagate from branch 'com.redhat.elfutils.roland.pending' (head 26cc2ce45739af072e7ff4fdab5e8eb7cd756d50)
to branch 'com.redhat.elfutils' (head bb519012dee7013b2cab5c2f5ed465cb3821b063)
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog4
-rw-r--r--tests/dwfl-bug-fd-leak.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 4a76f034..64faabd3 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -14,6 +14,10 @@
* testfile44.S.bz2: New tests.
* testfile44.expect.bz2: Adjust.
+2008-01-04 Roland McGrath <roland@redhat.com>
+
+ * dwfl-bug-fd-leak.c (main): Add a cast.
+
2008-01-03 Ulrich Drepper <drepper@redhat.com>
* testfile44.S.bz2: New tests.
diff --git a/tests/dwfl-bug-fd-leak.c b/tests/dwfl-bug-fd-leak.c
index c75a79b6..37ff402e 100644
--- a/tests/dwfl-bug-fd-leak.c
+++ b/tests/dwfl-bug-fd-leak.c
@@ -1,5 +1,5 @@
/* Test program for libdwfl file decriptors leakage.
- Copyright (C) 2007 Red Hat, Inc.
+ Copyright (C) 2007, 2008 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -102,7 +102,7 @@ main (void)
for (int i = 0; i < 5000; ++i)
{
- Dwfl *dwfl = elfutils_open (getpid (), (Dwarf_Addr) main);
+ Dwfl *dwfl = elfutils_open (getpid (), (Dwarf_Addr) (uintptr_t) &main);
elfutils_close (dwfl);
}