tidy-up: miscellaneous

- whitespace, indent, comments, clang-format.
- openssl: move feature guards within function blocks.
- tunit: drop redundant blocks.

Closes #20361
This commit is contained in:
Viktor Szakats 2026-01-16 18:13:44 +01:00
parent 2c6f13093e
commit 814b54d83e
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
45 changed files with 1521 additions and 1527 deletions

View file

@ -32,31 +32,30 @@
* but this uses epoll and timerfd instead of libevent.
*
* Written by Jeff Pohlmeyer, converted to use epoll by Josh Bialkowski
Requires a Linux system with epoll
When running, the program creates the named pipe "hiper.fifo"
Whenever there is input into the fifo, the program reads the input as a list
of URL's and creates some new easy handles to fetch each URL via the
curl_multi "hiper" API.
Thus, you can try a single URL:
% echo http://www.yahoo.com > hiper.fifo
Or a whole bunch of them:
% cat my-url-list > hiper.fifo
The fifo buffer is handled almost instantly, so you can even add more URL's
while the previous requests are still being downloaded.
Note:
For the sake of simplicity, URL length is limited to 1023 char's !
This is purely a demo app, all retrieved data is simply discarded by the write
callback.
*/
*
* Requires a Linux system with epoll
*
* When running, the program creates the named pipe "hiper.fifo"
*
* Whenever there is input into the fifo, the program reads the input as a list
* of URL's and creates some new easy handles to fetch each URL via the
* curl_multi "hiper" API.
*
* Thus, you can try a single URL:
* % echo http://www.yahoo.com > hiper.fifo
*
* Or a whole bunch of them:
* % cat my-url-list > hiper.fifo
*
* The fifo buffer is handled almost instantly, so you can even add more URL's
* while the previous requests are still being downloaded.
*
* Note:
* For the sake of simplicity, URL length is limited to 1023 chars.
*
* This is purely a demo app, all retrieved data is simply discarded by
* the write callback.
*/
#include <errno.h>
#include <fcntl.h>
#include <signal.h>