]> granicus.if.org Git - procps-ng/commit
library: minor fix for procps_meminfo_select
authorCraig Small <csmall@enc.com.au>
Wed, 11 May 2016 21:52:36 +0000 (07:52 +1000)
committerCraig Small <csmall@enc.com.au>
Wed, 11 May 2016 21:52:36 +0000 (07:52 +1000)
commitb4beb162fd4c4a848942b82ed036b447d2c11481
treed7f818b9facfabb0b5bf9d6cf93e333f497c1311
parent7364e3ea89f6524f137ad1d5d01e5ea9e6215c43
library: minor fix for procps_meminfo_select

Thus function returns a pointer, not an int, so if there is
an error return NULL and not -errno.

proc/meminfo.c: In function ‘procps_meminfo_select’:
proc/meminfo.c:994:20: warning: return makes pointer from integer
without a cast [-Wint-conversion]
             return -ENOMEM;

References:
 commit 407f1b71de3c4baed23d897b86ad316b64ad1ec9
proc/meminfo.c