rfkill.c revision 4844262f25a3ff6bd23de05a0a6f84a8e2983d74
34829a324b1ffc6cb8405223329a9c55cd8de0eeLennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
34829a324b1ffc6cb8405223329a9c55cd8de0eeLennart Poettering This file is part of systemd.
34829a324b1ffc6cb8405223329a9c55cd8de0eeLennart Poettering Copyright 2013 Lennart Poettering
34829a324b1ffc6cb8405223329a9c55cd8de0eeLennart Poettering systemd is free software; you can redistribute it and/or modify it
34829a324b1ffc6cb8405223329a9c55cd8de0eeLennart Poettering under the terms of the GNU Lesser General Public License as published by
34829a324b1ffc6cb8405223329a9c55cd8de0eeLennart Poettering the Free Software Foundation; either version 2.1 of the License, or
34829a324b1ffc6cb8405223329a9c55cd8de0eeLennart Poettering (at your option) any later version.
34829a324b1ffc6cb8405223329a9c55cd8de0eeLennart Poettering systemd is distributed in the hope that it will be useful, but
34829a324b1ffc6cb8405223329a9c55cd8de0eeLennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
34829a324b1ffc6cb8405223329a9c55cd8de0eeLennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
34829a324b1ffc6cb8405223329a9c55cd8de0eeLennart Poettering Lesser General Public License for more details.
34829a324b1ffc6cb8405223329a9c55cd8de0eeLennart Poettering You should have received a copy of the GNU Lesser General Public License
34829a324b1ffc6cb8405223329a9c55cd8de0eeLennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
34829a324b1ffc6cb8405223329a9c55cd8de0eeLennart Poettering _cleanup_udev_unref_ struct udev *udev = NULL;
return EXIT_FAILURE;
log_open();
return EXIT_FAILURE;
if (!udev) {
log_oom();
return EXIT_FAILURE;
if (!device) {
return EXIT_SUCCESS;
if (!name) {
return EXIT_SUCCESS;
if (!type) {
return EXIT_SUCCESS;
if (!escaped_type) {
log_oom();
return EXIT_FAILURE;
if (path_id) {
if (!escaped_path_id) {
log_oom();
return EXIT_FAILURE;
if (!saved) {
log_oom();
return EXIT_FAILURE;
if (!shall_restore_state())
return EXIT_SUCCESS;
if (r == -ENOENT)
return EXIT_SUCCESS;
return EXIT_FAILURE;
return EXIT_SUCCESS;
const char *value;
if (!value) {
return EXIT_SUCCESS;
return EXIT_FAILURE;
return EXIT_FAILURE;
return EXIT_SUCCESS;