summaryrefslogtreecommitdiff
path: root/src/stdio/vsnprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/vsnprintf.c')
-rw-r--r--src/stdio/vsnprintf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/stdio/vsnprintf.c b/src/stdio/vsnprintf.c
index 62963b2c..92753a90 100644
--- a/src/stdio/vsnprintf.c
+++ b/src/stdio/vsnprintf.c
@@ -4,13 +4,13 @@
int vsnprintf(char * restrict s, size_t n, const char *format, va_list arg)
{
- int ret = 0;
- struct io_options opt = {0};
- opt.fnname = "fprintf";
- opt.string = s;
- opt.maxlen = n;
- ret = __printf(&opt, format, arg);
- return ret;
+ struct io_options opt = {
+ .fnname = __func__,
+ .string = s,
+ .maxlen = n,
+ };
+
+ return __printf(&opt, format, arg);
}
/*