Home
last modified time | relevance | path

Searched refs:empty_to_null (Results 1 – 25 of 28) sorted by relevance

12

/systemd-251/coccinelle/
Dempty-to-null.cocci3 /* Avoid running this transformation on the empty_to_null function itself */
4 position p : script:python() { p[0].current_element != "empty_to_null" };
9 + empty_to_null(s)
/systemd-251/src/locale/
Dlocaled.c487 keymap = empty_to_null(keymap); in method_set_vc_keyboard()
488 keymap_toggle = empty_to_null(keymap_toggle); in method_set_vc_keyboard()
667 layout = empty_to_null(layout); in method_set_x11_keyboard()
668 model = empty_to_null(model); in method_set_x11_keyboard()
669 variant = empty_to_null(variant); in method_set_x11_keyboard()
670 options = empty_to_null(options); in method_set_x11_keyboard()
Dkeymap-util.c147 r = free_and_strdup(&c->locale[p], empty_to_null(getenv(name))); in locale_read_data()
326 r = strv_env_assign(&l, "KEYMAP", empty_to_null(c->vc_keymap)); in vconsole_write_data()
330 r = strv_env_assign(&l, "KEYMAP_TOGGLE", empty_to_null(c->vc_keymap_toggle)); in vconsole_write_data()
/systemd-251/src/libsystemd-network/
Dsd-lldp-tx.c180 return free_and_strdup(&lldp_tx->port_description, empty_to_null(port_description)); in sd_lldp_tx_set_port_description()
194 return free_and_strdup(&lldp_tx->hostname, empty_to_null(hostname)); in sd_lldp_tx_set_hostname()
204 return free_and_strdup(&lldp_tx->pretty_hostname, empty_to_null(pretty_hostname)); in sd_lldp_tx_set_pretty_hostname()
221 return free_and_strdup(&lldp_tx->mud_url, empty_to_null(mud_url)); in sd_lldp_tx_set_mud_url()
/systemd-251/src/shared/
Dbus-wait-for-jobs.c57 (void) free_and_strdup(&d->result, empty_to_null(result)); in match_job_removed()
59 (void) free_and_strdup(&d->name, empty_to_null(unit)); in match_job_removed()
Duser-record-nss.c83 r = free_and_strdup(&hr->home_directory, utf8_only(empty_to_null(pwd->pw_dir))); in nss_passwd_to_user_record()
87 r = free_and_strdup(&hr->shell, utf8_only(empty_to_null(pwd->pw_shell))); in nss_passwd_to_user_record()
Dformat-table.c698 table_get_data(t, cell)->color = empty_to_null(color); in table_set_color()
712 table_get_data(t, cell)->rgap_color = empty_to_null(color); in table_set_rgap_color()
Dconf-parser.c1035 return free_and_strdup_warn(s, empty_to_null(rvalue)); in config_parse_string()
/systemd-251/src/home/
Dhomed-conf.c52 return free_and_strdup_warn(s, empty_to_null(rvalue)); in config_parse_default_file_system_type()
Dhomectl.c171 TABLE_STRING, strna(empty_to_null(realname)), in list_homes()
173 TABLE_STRING, strna(empty_to_null(shell))); in list_homes()
/systemd-251/src/systemctl/
Dsystemctl-switch-root.c39 init = empty_to_null(init); in verb_switch_root()
Dsystemctl.c787 arg_boot_loader_entry = empty_to_null(optarg); in systemctl_parse_argv()
/systemd-251/src/sysv-generator/
Dsysv-generator.c507 j = empty_to_null(strstrip(t+12)); in load_sysv()
572 j = empty_to_null(strstrip(t+12)); in load_sysv()
583 j = empty_to_null(strstrip(t+18)); in load_sysv()
/systemd-251/src/journal/
Djournald.c27 namespace = argc > 1 ? empty_to_null(argv[1]) : NULL; in main()
/systemd-251/src/hostname/
Dhostnamed.c550 r = strv_env_assign(&l, name[p], empty_to_null(c->data[p])); in context_write_data_machine_info()
865 name = empty_to_null(name); in method_set_hostname()
913 name = empty_to_null(name); in method_set_static_hostname()
976 name = empty_to_null(name); in set_machine_info()
/systemd-251/src/core/
Ddbus-util.c61 r = free_and_strdup(p, empty_to_null(v)); in bus_set_transient_string()
Ddbus-scope.c150 r = free_and_strdup(&s->controller, empty_to_null(controller)); in bus_scope_set_transient_property()
Ddbus-util.h227 r = free_and_strdup(p, empty_to_null(v)); \
Ddbus-execute.c2850 r = free_and_strdup(&c->working_directory, empty_to_null(s)); in bus_exec_context_set_transient_property()
2877 … r = free_and_strdup(c->stdio_fdname + STDIN_FILENO, empty_to_null(s)); in bus_exec_context_set_transient_property()
2885 … r = free_and_strdup(c->stdio_fdname + STDOUT_FILENO, empty_to_null(s)); in bus_exec_context_set_transient_property()
2895 … r = free_and_strdup(&c->stdio_fdname[STDERR_FILENO], empty_to_null(s)); in bus_exec_context_set_transient_property()
2926 r = free_and_strdup(&c->stdio_file[STDIN_FILENO], empty_to_null(s)); in bus_exec_context_set_transient_property()
2934 … r = free_and_strdup(&c->stdio_file[STDOUT_FILENO], empty_to_null(s)); in bus_exec_context_set_transient_property()
2952 … r = free_and_strdup(&c->stdio_file[STDERR_FILENO], empty_to_null(s)); in bus_exec_context_set_transient_property()
/systemd-251/src/machine/
Dmachinectl.c328 TABLE_STRING, empty_to_null(name), in list_machines()
329 TABLE_STRING, empty_to_null(class), in list_machines()
330 TABLE_STRING, empty_to_null(service), in list_machines()
331 TABLE_STRING, empty_to_null(os), in list_machines()
332 TABLE_STRING, empty_to_null(version_id), in list_machines()
333 TABLE_STRING, empty_to_null(addresses)); in list_machines()
/systemd-251/src/basic/
Dstring-util.h60 static inline const char *empty_to_null(const char *p) { in empty_to_null() function
/systemd-251/src/resolve/
Dresolvectl.c752 name = empty_to_null(name); in resolve_service()
753 type = empty_to_null(type); in resolve_service()
895 canonical_name = empty_to_null(canonical_name); in resolve_service()
896 canonical_type = empty_to_null(canonical_type); in resolve_service()
/systemd-251/src/network/
Dnetworkd-dhcp-server.c636 return free_and_strdup(suboption_value, empty_to_null(p)); in config_parse_dhcp_server_relay_agent_suboption()
/systemd-251/src/userdb/
Duserdbctl.c115 TABLE_STRING, empty_to_null(ur->real_name), in show_user()
/systemd-251/src/login/
Dlogind-dbus.c3204 if (streq_ptr(m->wall_message, empty_to_null(wall_message)) && in method_set_wall_message()
3221 r = free_and_strdup(&m->wall_message, empty_to_null(wall_message)); in method_set_wall_message()

12