summaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/getpriority.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-06-07 21:49:06 +0000
committerMiles Bader <miles@gnu.org>1996-06-07 21:49:06 +0000
commit061c6526bf1a1161cceb155917fa58482db64700 (patch)
tree5b876b85087f6d97f7b8f2f18f278570691c7120 /sysdeps/mach/hurd/getpriority.c
parentbf668fc8f06ccba22b4927fba337efdabbe06ac1 (diff)
downloadglibc-061c6526bf1a1161cceb155917fa58482db64700.tar.gz
(getpriority): Use new interface to __proc_getprocinfo.
Diffstat (limited to 'sysdeps/mach/hurd/getpriority.c')
-rw-r--r--sysdeps/mach/hurd/getpriority.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/mach/hurd/getpriority.c b/sysdeps/mach/hurd/getpriority.c
index 30497bdbe5..769e2bea80 100644
--- a/sysdeps/mach/hurd/getpriority.c
+++ b/sysdeps/mach/hurd/getpriority.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1995 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -43,8 +43,8 @@ getpriority (enum __priority_which which, int who)
unsigned int oldpisize = pisize;
char *tw = 0;
size_t twsz = 0;
- onerr = __USEPORT (PROC, __proc_getprocinfo (port, pid,
- PI_FETCH_TASKINFO,
+ int flags = PI_FETCH_TASKINFO;
+ onerr = __USEPORT (PROC, __proc_getprocinfo (port, pid, &flags,
&pi, &pisize,
&tw, &twsz));
if (twsz)