summaryrefslogtreecommitdiffstats
path: root/sys-utils/prlimit.c
diff options
context:
space:
mode:
authorDavidlohr Bueso2011-12-08 21:19:19 +0100
committerKarel Zak2011-12-16 11:20:51 +0100
commit16fb9b3d111eb29b330f7f6602e1c7d495894dc8 (patch)
tree145b3394080fef081cb501ab412468f687333563 /sys-utils/prlimit.c
parentdocs: add hwclock -c to TODO file (diff)
downloadkernel-qcow2-util-linux-16fb9b3d111eb29b330f7f6602e1c7d495894dc8.tar.gz
kernel-qcow2-util-linux-16fb9b3d111eb29b330f7f6602e1c7d495894dc8.tar.xz
kernel-qcow2-util-linux-16fb9b3d111eb29b330f7f6602e1c7d495894dc8.zip
prlimit: return proper type
The add_prlim() function's definition currently returns a bogus structure. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Diffstat (limited to 'sys-utils/prlimit.c')
-rw-r--r--sys-utils/prlimit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c
index ae5453bbd..c785909e6 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));