server->machine is now a pointer, so propagate the change from . to ->.

This commit is contained in:
Benoît Dejean
2015-08-08 14:36:47 +02:00
parent ca42f1f3af
commit b74d6abf19
75 changed files with 322 additions and 322 deletions

View File

@@ -50,7 +50,7 @@ glibtop_get_msg_limits_p (glibtop *server, glibtop_msg_limits *buf)
/* !!! THE FOLLOWING CODE RUNS SGID KMEM - CHANGE WITH CAUTION !!! */
setregid (server->machine.gid, server->machine.egid);
setregid (server->machine->gid, server->machine->egid);
/* get the load average array */
@@ -58,7 +58,7 @@ glibtop_get_msg_limits_p (glibtop *server, glibtop_msg_limits *buf)
(int *) &msginfo, sizeof (msginfo),
_glibtop_nlist [X_MSGINFO].n_name);
if (setregid (server->machine.egid, server->machine.gid))
if (setregid (server->machine->egid, server->machine->gid))
_exit (1);
/* !!! END OF SGID KMEM PART !!! */