From: Miles Bader Date: Fri, 7 Jun 1996 21:49:06 +0000 (+0000) Subject: (getpriority): Use new interface to __proc_getprocinfo. X-Git-Tag: cvs/libc-960608~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=061c6526bf1a1161cceb155917fa58482db64700;p=thirdparty%2Fglibc.git (getpriority): Use new interface to __proc_getprocinfo. --- diff --git a/sysdeps/mach/hurd/getpriority.c b/sysdeps/mach/hurd/getpriority.c index 30497bdbe55..769e2bea801 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)