summaryrefslogtreecommitdiffstats
path: root/src/printf.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-09-26 12:48:21 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-09-26 12:48:21 -0400
commitdccb52556730ff060bcccbe764cef4b13b3d5712 (patch)
treece71c0bb7a21f6511be8d45af19f722cf46c00ee /src/printf.c
parent8864dc5d1b9c85daa58e98c04767d2ee528f2dea (diff)
downloadbfs-dccb52556730ff060bcccbe764cef4b13b3d5712.tar.xz
dstring: New dchar typedef for dynamic strings
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/printf.c b/src/printf.c
index f0910fa..5de5a28 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -38,7 +38,7 @@ struct bfs_printf {
/** The printing function to invoke. */
bfs_printf_fn *fn;
/** String data associated with this directive. */
- char *str;
+ dchar *str;
/** The stat field to print. */
enum bfs_stat_field stat_field;
/** Character data associated with this directive. */
@@ -596,7 +596,7 @@ static int append_directive(const struct bfs_ctx *ctx, struct bfs_printf **forma
int bfs_printf_parse(const struct bfs_ctx *ctx, struct bfs_expr *expr, const char *format) {
expr->printf = NULL;
- char *literal = dstralloc(0);
+ dchar *literal = dstralloc(0);
if (!literal) {
bfs_perror(ctx, "dstralloc()");
goto error;