_cleanup_(MHD_destroy_responsep) struct MHD_Response *response = NULL;
RequestMeta *m = ASSERT_PTR(connection_cls);
int r;
- _cleanup_free_ char* hostname = NULL, *pretty_name = NULL, *os_name = NULL;
+ _cleanup_free_ char *hostname = NULL, *pretty_name = NULL, *os_name = NULL;
uint64_t cutoff_from = 0, cutoff_to = 0, usage = 0;
sd_id128_t mid, bid;
_cleanup_free_ char *v = NULL, *json = NULL;
#define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem"
#define TRUST_FILE CERTIFICATE_ROOT "/ca/trusted.pem"
-static const char* arg_url = NULL;
-static const char* arg_getter = NULL;
-static const char* arg_listen_raw = NULL;
-static const char* arg_listen_http = NULL;
-static const char* arg_listen_https = NULL;
-static char** arg_files = NULL; /* Do not free this. */
+static const char *arg_url = NULL;
+static const char *arg_getter = NULL;
+static const char *arg_listen_raw = NULL;
+static const char *arg_listen_http = NULL;
+static const char *arg_listen_https = NULL;
+static char **arg_files = NULL; /* Do not free this. */
static bool arg_compress = true;
static bool arg_seal = false;
static int http_socket = -1, https_socket = -1;
-static char** arg_gnutls_log = NULL;
+static char **arg_gnutls_log = NULL;
static JournalWriteSplitMode arg_split_mode = _JOURNAL_WRITE_SPLIT_INVALID;
static char *arg_output = NULL;
**********************************************************************
**********************************************************************/
-static int spawn_child(const char* child, char** argv) {
+static int spawn_child(const char *child, char **argv) {
pid_t child_pid;
int fd[2], r;
return fd[0];
}
-static int spawn_curl(const char* url) {
+static int spawn_curl(const char *url) {
char **argv = STRV_MAKE("curl",
"-HAccept: application/vnd.fdo.journal",
"--silent",
static int create_remoteserver(
RemoteServer *s,
- const char* key,
- const char* cert,
- const char* trust) {
+ const char *key,
+ const char *cert,
+ const char *trust) {
int r, n, fd;
case ARG_GNUTLS_LOG:
#if HAVE_GNUTLS
- for (const char* p = optarg;;) {
+ for (const char *p = optarg;;) {
_cleanup_free_ char *word = NULL;
r = extract_first_word(&p, &word, ",", 0);
}
#endif
-static int open_output(RemoteServer *s, Writer *w, const char* host) {
+static int open_output(RemoteServer *s, Writer *w, const char *host) {
_cleanup_free_ char *_filename = NULL;
const char *filename;
int r;
return 0;
}
-int journal_remote_add_source(RemoteServer *s, int fd, char* name, bool own_name) {
+int journal_remote_add_source(RemoteServer *s, int fd, char *name, bool own_name) {
RemoteSource *source = NULL;
int r;
}
static int accept_connection(
- const char* type,
+ const char *type,
int fd,
SocketAddress *addr,
char **hostname) {
int journal_remote_get_writer(RemoteServer *s, const char *host, Writer **writer);
-int journal_remote_add_source(RemoteServer *s, int fd, char* name, bool own_name);
+int journal_remote_add_source(RemoteServer *s, int fd, char *name, bool own_name);
int journal_remote_add_raw_socket(RemoteServer *s, int fd);
int journal_remote_handle_raw_source(
sd_event_source *event,