|
From: <sv...@va...> - 2006-12-11 01:11:06
|
Author: sewardj
Date: 2006-12-11 01:11:02 +0000 (Mon, 11 Dec 2006)
New Revision: 6391
Log:
Tidy fd-leak stuff a bit.
Modified:
trunk/coregrind/m_syswrap/syswrap-generic.c
Modified: trunk/coregrind/m_syswrap/syswrap-generic.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syswrap/syswrap-generic.c 2006-12-11 00:19:28 UTC (=
rev 6390)
+++ trunk/coregrind/m_syswrap/syswrap-generic.c 2006-12-11 01:11:02 UTC (=
rev 6391)
@@ -452,7 +452,7 @@
} OpenFd;
=20
/* List of allocated file descriptors. */
-static OpenFd *allocated_fds;
+static OpenFd *allocated_fds =3D NULL;
=20
/* Count of open file descriptors. */
static Int fd_count =3D 0;
@@ -627,7 +627,7 @@
=20
=20
/* Dump out a summary, and a more detailed list, of open file descriptor=
s. */
-void VG_(show_open_fds) ()
+void VG_(show_open_fds) (void)
{
OpenFd *i =3D allocated_fds;
=20
@@ -691,7 +691,7 @@
/* Initialize the list of open file descriptors with the file descriptor=
s
we inherited from out parent process. */
=20
-void VG_(init_preopened_fds)()
+void VG_(init_preopened_fds)(void)
{
Int ret;
struct vki_dirent d;
|