diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-08-24 09:31:39 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-08-24 16:38:17 +0200 |
commit | 4ebac06106825a5d28be4c38e62732c911168605 (patch) | |
tree | ed47f706f59cd2f6ce69102349adf640caf4dae0 /lib/mprintf.c | |
parent | 4be1f8dc01013e4dee2b99026cd3b806ea7253c4 (diff) | |
download | curl-4ebac06106825a5d28be4c38e62732c911168605.tar.gz |
checksrc: verify do-while and spaces between the braces
Updated mprintf.c to comply
Closes #5845
Diffstat (limited to 'lib/mprintf.c')
-rw-r--r-- | lib/mprintf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c index 80735be51..6b62fdfbc 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -99,12 +99,12 @@ static const char lower_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz"; /* Upper-case digits. */ static const char upper_digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; -#define OUTCHAR(x) \ - do{ \ +#define OUTCHAR(x) \ + do { \ if(stream((unsigned char)(x), (FILE *)data) != -1) \ - done++; \ - else \ - return done; /* return immediately on failure */ \ + done++; \ + else \ + return done; /* return immediately on failure */ \ } while(0) /* Data type to read from the arglist */ |