summaryrefslogtreecommitdiff
path: root/docs/examples/multi-debugcallback.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2024-09-18 15:29:51 +0200
committerDaniel Stenberg <daniel@haxx.se>2024-09-19 14:59:12 +0200
commitfbf5d507cef9880d0d3db2ce0231dc31309790ee (patch)
tree08f66ee5940c83979c3389fa05d1b8984069038e /docs/examples/multi-debugcallback.c
parenta57b45c38656ba2124303800a3b9580b3d85681b (diff)
lib/src: white space edits to comply better with code style
... as checksrc now finds and complains about these. Closes #14921
Diffstat (limited to 'docs/examples/multi-debugcallback.c')
-rw-r--r--docs/examples/multi-debugcallback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/multi-debugcallback.c b/docs/examples/multi-debugcallback.c
index a5be174da..79123ca22 100644
--- a/docs/examples/multi-debugcallback.c
+++ b/docs/examples/multi-debugcallback.c
@@ -49,7 +49,7 @@ static void dump(const char *text, FILE *stream, unsigned char *ptr,
fprintf(stream, "%s, %10.10lu bytes (0x%8.8lx)\n",
text, (unsigned long)size, (unsigned long)size);
- for(i = 0; i<size; i += width) {
+ for(i = 0; i < size; i += width) {
fprintf(stream, "%4.4lx: ", (unsigned long)i);
@@ -70,7 +70,7 @@ static void dump(const char *text, FILE *stream, unsigned char *ptr,
break;
}
fprintf(stream, "%c",
- (ptr[i + c] >= 0x20) && (ptr[i + c]<0x80)?ptr[i + c]:'.');
+ (ptr[i + c] >= 0x20) && (ptr[i + c] < 0x80) ? ptr[i + c] : '.');
/* check again for 0D0A, to avoid an extra \n if it's at width */
if(nohex && (i + c + 2 < size) && ptr[i + c + 1] == 0x0D &&
ptr[i + c + 2] == 0x0A) {