bug-hurd
[Top][All Lists]
Advanced

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

pptop: ihash patch to build & run


From: Joachim Nilsson
Subject: pptop: ihash patch to build & run
Date: Sun, 24 Apr 2005 01:40:51 +0200
User-agent: Debian Thunderbird 1.0 (X11/20050116)

Hi,

here's a small patch to get pptop working again on the Hurd.
Don't really know why the ihash code is there, it feels a
bit redundant. Since it not used to any further extent than
indicated by the below "patch" it could just as easily be
removed altogether. It works fine without it.

Regards
 /Jocke

--- pptop.c     25 Aug 2002 19:17:31 -0000      1.10
+++ pptop.c     23 Apr 2005 23:33:31 -0000
@@ -261,7 +261,7 @@
   struct ps_context *context;
   struct proc_stat_list *procset;
   error_t err;
-  ihash_t offsets;
+  hurd_ihash_t offsets;

   char *tty_names = 0;
   unsigned num_tty_names = 0;
@@ -325,7 +325,7 @@
   if (err)
     return err;

-  ihash_create (&offsets);
+  hurd_ihash_create (&offsets, HURD_IHASH_NO_LOCP);

   /* Lets try to run proc_stat_list_fmt on a proc_stat_list
      pointer (here it is procset).




reply via email to

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