diff options
Diffstat (limited to 'docs/examples/multi-debugcallback.c')
-rw-r--r-- | docs/examples/multi-debugcallback.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/examples/multi-debugcallback.c b/docs/examples/multi-debugcallback.c index 8bdb58800..10842e950 100644 --- a/docs/examples/multi-debugcallback.c +++ b/docs/examples/multi-debugcallback.c @@ -100,10 +100,7 @@ int my_trace(CURL *handle, curl_infotype type, switch(type) { case CURLINFO_TEXT: fprintf(stderr, "== Info: %s", data); - /* FALLTHROUGH */ - default: /* in case a new one is introduced to shock us */ return 0; - case CURLINFO_HEADER_OUT: text = "=> Send header"; break; @@ -116,6 +113,8 @@ int my_trace(CURL *handle, curl_infotype type, case CURLINFO_DATA_IN: text = "<= Recv data"; break; + default: /* in case a new one is introduced to shock us */ + return 0; } dump(text, stderr, data, size, TRUE); |