summaryrefslogtreecommitdiffstats
path: root/sys-utils/prlimit.c
diff options
context:
space:
mode:
authorDavidlohr Bueso2011-12-20 12:58:16 +0100
committerKarel Zak2011-12-20 13:09:32 +0100
commit212db7f2af08572da42abf3220ccbefce9567f54 (patch)
treec69e85134590eae706e1160fa00af6c3f1dfb1b5 /sys-utils/prlimit.c
parentlosetup: move to sys-utils directory (diff)
downloadkernel-qcow2-util-linux-212db7f2af08572da42abf3220ccbefce9567f54.tar.gz
kernel-qcow2-util-linux-212db7f2af08572da42abf3220ccbefce9567f54.tar.xz
kernel-qcow2-util-linux-212db7f2af08572da42abf3220ccbefce9567f54.zip
prlimit: use xalloc libs
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 c785909e6..8235eb143 100644
--- a/sys-utils/prlimit.c
+++ b/sys-utils/prlimit.c
@@ -452,7 +452,7 @@ static int parse_prlim(struct rlimit *lim, char *ops, size_t id)
static int add_prlim(char *ops, struct list_head *lims, size_t id)
{
- struct prlimit *lim = calloc(1, sizeof(*lim));
+ struct prlimit *lim = xcalloc(1, sizeof(*lim));
INIT_LIST_HEAD(&lim->lims);
lim->desc = &prlimit_desc[id];