toolbox

Check-in [33c82f54d0]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:radios-check: release resources acquired by curl_global_init()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 33c82f54d0ff682eb07ad4b7a9a211fb4f0562871475fbde79a2eded6cb6128b
User & Date: jef 2020-07-14 12:07:06
Context
2020-07-17
18:59
lib: redesign jtlst check-in: 93148cea01 user: jef tags: trunk
2020-07-14
12:07
radios-check: release resources acquired by curl_global_init() check-in: 33c82f54d0 user: jef tags: trunk
2020-06-15
19:14
soudnmachine: switch to mpv check-in: 7d897a0e08 user: jef tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/radios-check/radios-check.c.

1
2
3
4

5
6
7
8
9
10
11
...
195
196
197
198
199
200
201

202

203
204
205
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <sys/queue.h>

#include "parallel.h"
#include "cJSON.h"
#include "wget.h"

#define PROGNAME "radios-check"
#define URL_RADIOS_LIST "https://foutaise.org/api/radios/list"

................................................................................
	}
	argc -= optind;
	argv += optind;

	if (argc != 0)
		die("unexpected command line arguments");


	radios_check();


	return EXIT_SUCCESS;
}




>







 







>

>



1
2
3
4
5
6
7
8
9
10
11
12
...
196
197
198
199
200
201
202
203
204
205
206
207
208
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <sys/queue.h>
#include <curl/curl.h>
#include "parallel.h"
#include "cJSON.h"
#include "wget.h"

#define PROGNAME "radios-check"
#define URL_RADIOS_LIST "https://foutaise.org/api/radios/list"

................................................................................
	}
	argc -= optind;
	argv += optind;

	if (argc != 0)
		die("unexpected command line arguments");

	curl_global_init(CURL_GLOBAL_ALL);
	radios_check();
	curl_global_cleanup();

	return EXIT_SUCCESS;
}