mirror of
https://github.com/curl/curl.git
synced 2026-08-25 16:33:38 +03:00
examples: make functions/data static where missing
Also to avoid compiler warnings on missing declarations. Missed by CI for these "complicated" examples. Closes #19579
This commit is contained in:
parent
5fa2d8320c
commit
0a2618b265
2 changed files with 10 additions and 13 deletions
|
|
@ -35,7 +35,7 @@
|
|||
#include <curl/curl.h>
|
||||
|
||||
/* curl write callback, to fill tidy's input buffer... */
|
||||
uint write_cb(char *in, uint size, uint nmemb, TidyBuffer *out)
|
||||
static uint write_cb(char *in, uint size, uint nmemb, TidyBuffer *out)
|
||||
{
|
||||
uint r;
|
||||
r = size * nmemb;
|
||||
|
|
@ -44,7 +44,7 @@ uint write_cb(char *in, uint size, uint nmemb, TidyBuffer *out)
|
|||
}
|
||||
|
||||
/* Traverse the document tree */
|
||||
void dumpNode(TidyDoc doc, TidyNode tnod, int indent)
|
||||
static void dumpNode(TidyDoc doc, TidyNode tnod, int indent)
|
||||
{
|
||||
TidyNode child;
|
||||
for(child = tidyGetChild(tnod); child; child = tidyGetNext(child) ) {
|
||||
|
|
@ -73,7 +73,6 @@ void dumpNode(TidyDoc doc, TidyNode tnod, int indent)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
CURL *curl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue