From 6f312c89578be7b8d0a47c75a4de4cc8c190e40e Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Wed, 29 Feb 2012 15:54:24 +0100 Subject: xalloc: use xasprintf in all files Signed-off-by: Sami Kerola --- sys-utils/prlimit.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys-utils/prlimit.c') diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c index a446187ff..c45b85efb 100644 --- a/sys-utils/prlimit.c +++ b/sys-utils/prlimit.c @@ -228,20 +228,20 @@ static void add_tt_line(struct tt *tt, struct prlimit *l) switch (get_column_id(i)) { case COL_RES: - rc = asprintf(&str, "%s", l->desc->name); + rc = xasprintf(&str, "%s", l->desc->name); break; case COL_HELP: - rc = asprintf(&str, "%s", l->desc->help); + rc = xasprintf(&str, "%s", l->desc->help); break; case COL_SOFT: rc = l->rlim.rlim_cur == RLIM_INFINITY ? - asprintf(&str, "%s", "unlimited") : - asprintf(&str, "%llu", (unsigned long long) l->rlim.rlim_cur); + xasprintf(&str, "%s", "unlimited") : + xasprintf(&str, "%llu", (unsigned long long) l->rlim.rlim_cur); break; case COL_HARD: rc = l->rlim.rlim_max == RLIM_INFINITY ? - asprintf(&str, "%s", "unlimited") : - asprintf(&str, "%llu", (unsigned long long) l->rlim.rlim_max); + xasprintf(&str, "%s", "unlimited") : + xasprintf(&str, "%llu", (unsigned long long) l->rlim.rlim_max); break; case COL_UNITS: str = l->desc->unit ? xstrdup(_(l->desc->unit)) : NULL; -- cgit v1.2.3-55-g7522