commit 0addd00886f579f744bd9d08bd30369ff8c5d25a
parent a21baab57748cbb12cfb105c1664fdb67fef21d5
Author: vaplv <vaplv@free.fr>
Date: Sat, 17 Dec 2016 00:53:53 +0100
Minor fix of the coding style
Diffstat:
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/io_c99.h b/src/io_c99.h
@@ -28,27 +28,27 @@
static INLINE int
vsnprint_c99__(char* str, size_t sz, const char* fmt, va_list arg_lst)
{
- int count = -1;
+ int count = -1;
- if(sz)
- count = _vsnprintf_s(str, sz, _TRUNCATE, fmt, arg_lst);
- if(count == -1)
- count = _vscprintf(fmt, arg_lst);
+ if(sz)
+ count = _vsnprintf_s(str, sz, _TRUNCATE, fmt, arg_lst);
+ if(count == -1)
+ count = _vscprintf(fmt, arg_lst);
- return count;
+ return count;
}
static INLINE int
snprintf_c99__(char* str, size_t sz, const char* fmt, ...)
{
- int count;
- va_list arg_lst;
+ int count;
+ va_list arg_lst;
- va_start(arg_lst, fmt);
- count = vsnprint_c99__(str, sz, fmt, arg_lst);
- va_end(arg_lst);
+ va_start(arg_lst, fmt);
+ count = vsnprint_c99__(str, sz, fmt, arg_lst);
+ va_end(arg_lst);
- return count;
+ return count;
}
#endif /* COMPILER_CL */