Specifically, remove double newlines, and newlines before '}'.
finish:
buf[l-1] = 0;
return buf;
-
}
*ret_prefixlen = k;
return 0;
-
}
void in_addr_hash_func(const union in_addr_union *u, int family, struct siphash *state) {
return true;
return FILE_SIZE_VALID(l);
-
}
}
return 0;
-
}
static int setup_one_tmp_dir(const char *id, const char *prefix, char **path, char **tmp_path) {
exec_command_dump(s->exec_command + c, f, prefix2);
}
-
}
static int swap_spawn(Swap *s, ExecCommand *c, PidRef *ret_pid) {
}
return free_and_strdup_warn(s, empty_to_null(rvalue));
-
}
LIST_REMOVE(stdout_stream_notify_queue, s->server->stdout_streams_notify_queue, s);
s->in_notify_queue = false;
-
}
client_stop(client, r);
return 0;
-
}
static int client_initialize_events(sd_dhcp_client *client, sd_event_io_handler_t io_callback) {
if (r < 0)
return r;
}
-
}
int bus_message_get_arg(sd_bus_message *m, unsigned i, const char **str) {
else
ASSERT_OK_POSITIVE(sd_journal_previous(j));
}
-
}
static void setup_sequential(void) {
s,
link->network->router_dns_lifetime_usec,
/* valid_until = */ USEC_INFINITY);
-
}
static int radv_find_uplink(Link *link, Link **ret) {
assert_se(r == -EDOM);
assert_se(shortened == NULL);
}
-
}
int main(void) {
[SD_PATH_USER_SEARCH_CREDENTIAL_STORE] = "user-search-credential-store",
[SD_PATH_USER_CREDENTIAL_STORE_ENCRYPTED] = "user-credential-store-encrypted",
[SD_PATH_USER_SEARCH_CREDENTIAL_STORE_ENCRYPTED] = "user-search-credential-store-encrypted",
-
};
static int order_cmp(const size_t *a, const size_t *b) {
if (set_isempty(m->varlink_dns_configuration_subscription))
manager_stop_dns_configuration_monitor(m);
-
return log_debug_errno(r, "Failed to subscribe client to DNS configuration monitor: %m");
}
assert_se(!result);
log_info("[OK] %s/%s succeeded.", name, af);
}
-
}
int main(int argc, char* argv[]) {
return (wanted = false);
return (wanted = true);
-
}
bool cg_is_legacy_wanted(void) {
dissect_loop_device(loop, verity, mount_options, image_policy, flags, ret),
loop->backing_file ?: loop->node,
verity);
-
}
bool dissected_image_verity_candidate(const DissectedImage *image, PartitionDesignator partition_designator) {
if (!isempty(error_id))
return log_error_errno(sd_varlink_error_to_errno(error_id, reply), "Failed to call MountDirectory() varlink call: %s", error_id);
-
static const sd_json_dispatch_field dispatch_table[] = {
{ "mountFileDescriptor", _SD_JSON_VARIANT_TYPE_INVALID, sd_json_dispatch_uint, 0, SD_JSON_MANDATORY },
{}
log_debug("Successfully sent AF_VSOCK socket via STDOUT.");
return 0;
-
}
static int process_vsock_string(const char *host, const char *port) {
return free_and_replace(*s, resolved);
}
-
int feature_read_definition(Feature *f, const char *path, const char *const *dirs) {
assert(f);
assert_se(argv_looks_like_help(5, STRV_MAKE("program", "--help", "arg1", "-h", "--help")));
assert_se(!argv_looks_like_help(4, STRV_MAKE("program","arg1", "arg2", "-H")));
assert_se(!argv_looks_like_help(3, STRV_MAKE("program", "--Help", "arg2")));
-
}
static int intro(void) {
ASSERT_OK(fw_add_local_dnat(&ctx, true, AF_INET6, IPPROTO_TCP, 4711, &u2, 815, &u1));
ASSERT_OK(fw_add_local_dnat(&ctx, false, AF_INET6, IPPROTO_TCP, 4711, &u2, 815, NULL));
-
}
static union in_addr_union *parse_addr(const char *str, union in_addr_union *u) {
assert_se(r >= 0);
assert_se(*test->result == test->expected);
}
-
}
TEST(contains_instance_specifier_superset) {
assert_se(test_path_simplify_and_warn_one("/aaaa", "/aaaa", 0) == 0);
assert_se(test_path_simplify_and_warn_one("/aaaa", "/aaaa", PATH_CHECK_ABSOLUTE) == 0);
assert_se(test_path_simplify_and_warn_one("/aaaa", "/aaaa", PATH_CHECK_RELATIVE) == -EINVAL);
-
}
DEFINE_TEST_MAIN(LOG_INFO);
_cleanup_free_ char *line = NULL;
assert_se(read_line(f, LONG_LINE_MAX, &line) > 0);
ASSERT_STREQ(line, "a=ffffff");
-
}
TEST(serialize_item_base64mem) {
"type Foo (b: bool, c: foo, c: int)", NULL, NULL, NULL) == -ENETUNREACH); /* unresolved type */
assert_se(varlink_idl_parse("interface org.freedesktop.Foo\n"
"type Foo ()", NULL, NULL, NULL) == -EBADMSG); /* empty struct/enum */
-
}
TEST(interface_name_is_valid) {
SD_JSON_BUILD_PAIR_STRING("iexist", "foo"),
SD_JSON_BUILD_PAIR_STRING("idontexist", "bar")) >= 0);
-
assert_se(sd_event_loop(e) >= 0);
}
bool hidden;
bool systemd_skip;
-
} XdgAutostartService;
XdgAutostartService * xdg_autostart_service_free(XdgAutostartService *s);