diff options
author | Colin Walters <walters@verbum.org> | 2016-05-06 09:56:24 -0400 |
---|---|---|
committer | Colin Walters (automation) <walters+githubbot@verbum.org> | 2016-05-07 06:52:05 +0000 |
commit | bf6e3564a30a0e4ddd738ede44dd12cf9aa2c319 (patch) | |
tree | b34750313ea82cabc8d4cd68a373dfeb2d38633e /utils.c | |
parent | f525e670b8a50f8775b89d70e152bef92ee44f4e (diff) | |
download | bubblewrap-bf6e3564a30a0e4ddd738ede44dd12cf9aa2c319.tar.gz |
utils: Rename strdup_printf -> xasprintf
I find this clearer since I know about `asprintf`, and the `x` prefix.
Closes: #55
Approved by: alexlarsson
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -239,8 +239,8 @@ strconcat3 (const char *s1, } char* -strdup_printf (const char *format, - ...) +xasprintf (const char *format, + ...) { char *buffer = NULL; va_list args; @@ -640,9 +640,9 @@ label_mount (const char *opt, const char *mount_label) if (mount_label) { if (opt) - return strdup_printf ("%s,context=\"%s\"", opt, mount_label); + return xasprintf ("%s,context=\"%s\"", opt, mount_label); else - return strdup_printf ("context=\"%s\"", mount_label); + return xasprintf ("context=\"%s\"", mount_label); } #endif if (opt) |