From 59d85e2bb065a3bdc27868acb7a65f89d872c7fa Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 16 Jan 2014 09:26:50 -0600 Subject: Rename xmsprintf() to just xmprintf(). Partly because there's no supplied target string ala sprintf, and partly because I can never remember what order the m and s go in. --- toys/pending/groupadd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'toys/pending/groupadd.c') diff --git a/toys/pending/groupadd.c b/toys/pending/groupadd.c index 8ff539eb..c19e1eef 100644 --- a/toys/pending/groupadd.c +++ b/toys/pending/groupadd.c @@ -59,10 +59,10 @@ static void new_group() } } - entry = xmsprintf("%s:%s:%d:", *toys.optargs, "x", TT.gid); + entry = xmprintf("%s:%s:%d:", *toys.optargs, "x", TT.gid); update_password(GROUP_PATH, *toys.optargs, entry); free(entry); - entry = xmsprintf("%s:%s::", *toys.optargs, "!"); + entry = xmprintf("%s:%s::", *toys.optargs, "!"); update_password(SECURE_GROUP_PATH, *toys.optargs, entry); free(entry); } @@ -82,7 +82,7 @@ void groupadd_main(void) xgetpwnam(*toys.optargs); if (!(grp = getgrnam(toys.optargs[1]))) error_exit("group '%s' does not exist", toys.optargs[1]); - if (!grp->gr_mem) entry = xmsprintf("%s", *toys.optargs); + if (!grp->gr_mem) entry = xmprintf("%s", *toys.optargs); else { int i; -- cgit v1.2.3