diff options
author | Davidlohr Bueso | 2011-12-08 21:19:19 +0100 |
---|---|---|
committer | Karel Zak | 2011-12-16 11:20:51 +0100 |
commit | 16fb9b3d111eb29b330f7f6602e1c7d495894dc8 (patch) | |
tree | 145b3394080fef081cb501ab412468f687333563 /sys-utils/prlimit.c | |
parent | docs: add hwclock -c to TODO file (diff) | |
download | kernel-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.c | 2 |
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)); |