]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Tidy fd-leak stuff a bit.
authorJulian Seward <jseward@acm.org>
Mon, 11 Dec 2006 01:11:02 +0000 (01:11 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 11 Dec 2006 01:11:02 +0000 (01:11 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6391

coregrind/m_syswrap/syswrap-generic.c

index deb7c7786e7e1bb4072eeb875606d565c0dc4cf0..30534d36b0ce5015f246c74b7ced612eb32e92a0 100644 (file)
@@ -452,7 +452,7 @@ typedef struct OpenFd
 } OpenFd;
 
 /* List of allocated file descriptors. */
-static OpenFd *allocated_fds;
+static OpenFd *allocated_fds = NULL;
 
 /* Count of open file descriptors. */
 static Int fd_count = 0;
@@ -627,7 +627,7 @@ getsockdetails(Int fd)
 
 
 /* Dump out a summary, and a more detailed list, of open file descriptors. */
-void VG_(show_open_fds) ()
+void VG_(show_open_fds) (void)
 {
    OpenFd *i = allocated_fds;
 
@@ -691,7 +691,7 @@ void do_hacky_preopened(void)
 /* Initialize the list of open file descriptors with the file descriptors
    we inherited from out parent process. */
 
-void VG_(init_preopened_fds)()
+void VG_(init_preopened_fds)(void)
 {
    Int ret;
    struct vki_dirent d;