commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 80/87: Fix actual procinfo_t type


From: Samuel Thibault
Subject: [hurd] 80/87: Fix actual procinfo_t type
Date: Sun, 09 Nov 2014 11:05:06 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit e6e1f1addd6f0f237e54f0a55a776c99aa4d72bd
Author: Samuel Thibault <address@hidden>
Date:   Sun Nov 2 16:10:03 2014 +0100

    Fix actual procinfo_t type
    
    * exec/elfcore.c (dump_core): Use procinfo_t, which is already a
    pointer, instead of procinfo_t*.
---
 exec/elfcore.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/exec/elfcore.c b/exec/elfcore.c
index ff38a3c..b09f669 100644
--- a/exec/elfcore.c
+++ b/exec/elfcore.c
@@ -334,7 +334,7 @@ dump_core (task_t task, file_t file, off_t corelimit,
     mach_msg_type_number_t num_waits = 0;
     char pibuf[offsetof (struct procinfo, threadinfos[2])];
     struct procinfo *pi = (void *) &pibuf;
-    mach_msg_type_number_t pi_size = sizeof pibuf / sizeof (*(procinfo_t*)0);
+    mach_msg_type_number_t pi_size = sizeof pibuf / sizeof (*(procinfo_t)0);
 
     memset (&pstatus.data, 0, sizeof pstatus.data);
     memset (&psinfo.data, 0, sizeof psinfo.data);
@@ -395,7 +395,7 @@ dump_core (task_t task, file_t file, off_t corelimit,
        psinfo.data.pr_wstat = pi->exitstatus;
 
        if ((void *) pi != &pibuf)
-         munmap (pi, pi_size * sizeof (*(procinfo_t*) 0));
+         munmap (pi, pi_size * sizeof (*(procinfo_t) 0));
       }
     if (err == 0)
       {

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]