summaryrefslogtreecommitdiff
path: root/lib/cvtuns0.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cvtuns0.c')
-rw-r--r--lib/cvtuns0.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/cvtuns0.c b/lib/cvtuns0.c
index 6a63573..090f00d 100644
--- a/lib/cvtuns0.c
+++ b/lib/cvtuns0.c
@@ -25,12 +25,13 @@
**
** NOTE: assumes buf is large enough to hold the resulting string
*/
-char *cvtuns0( char *buf, uint32_t value ) {
+char *cvtuns0(char *buf, uint32_t value)
+{
uint32_t quotient;
quotient = value / 10;
- if( quotient != 0 ){
- buf = cvtdec0( buf, quotient );
+ if (quotient != 0) {
+ buf = cvtdec0(buf, quotient);
}
*buf++ = value % 10 + '0';
return buf;