From: Davidlohr Bueso Date: Thu, 8 Dec 2011 20:19:19 +0000 (+0100) Subject: prlimit: return proper type X-Git-Tag: v2.21-rc1~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16fb9b3d111eb29b330f7f6602e1c7d495894dc8;p=thirdparty%2Futil-linux.git prlimit: return proper type The add_prlim() function's definition currently returns a bogus structure. Signed-off-by: Davidlohr Bueso --- diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c index ae5453bbd8..c785909e63 100644 --- a/sys-utils/prlimit.c +++ b/sys-utils/prlimit.c @@ -450,7 +450,7 @@ static int parse_prlim(struct rlimit *lim, char *ops, size_t id) return found; } -static struct prlimit *add_prlim(char *ops, struct list_head *lims, size_t id) +static int add_prlim(char *ops, struct list_head *lims, size_t id) { struct prlimit *lim = calloc(1, sizeof(*lim));