From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael Kerrisk (man-pages)" Subject: Re: [PATCH 02/20] set_mempolicy.2: Fix prototype for set_mempolicy(2) Date: Tue, 20 May 2014 07:16:31 +0200 Message-ID: <537AE52F.7050207@gmail.com> References: <1400540546-25578-1-git-send-email-rv@rasmusvillemoes.dk> <1400540546-25578-3-git-send-email-rv@rasmusvillemoes.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1400540546-25578-3-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org> Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Rasmus Villemoes Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-man@vger.kernel.org Thanks! Applied. Cheers, Michael On 05/20/2014 01:02 AM, Rasmus Villemoes wrote: > The nodemask argument is const. The return type in numaif.h is long. > --- > man2/set_mempolicy.2 | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/man2/set_mempolicy.2 b/man2/set_mempolicy.2 > index 843208c..b17cf30 100644 > --- a/man2/set_mempolicy.2 > +++ b/man2/set_mempolicy.2 > @@ -31,8 +31,8 @@ set_mempolicy \- set default NUMA memory policy for a process and its children > .nf > .B "#include " > .sp > -.BI "int set_mempolicy(int " mode ", unsigned long *" nodemask , > -.BI " unsigned long " maxnode ); > +.BI "long set_mempolicy(int " mode ", const unsigned long *" nodemask , > +.BI " unsigned long " maxnode ); > .sp > Link with \fI\-lnuma\fP. > .fi > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html