]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
prlimit: return proper type
authorDavidlohr Bueso <dave@gnu.org>
Thu, 8 Dec 2011 20:19:19 +0000 (21:19 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 16 Dec 2011 10:20:51 +0000 (11:20 +0100)
The add_prlim() function's definition currently returns a bogus structure.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
sys-utils/prlimit.c

index ae5453bbd8e3ac6ba069dad28568451e83a27d9d..c785909e63a23ad4963b6211e8a6c2a0f88c15c1 100644 (file)
@@ -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));