verbs.c revision a095315b3c31f7a419baceac82c26c3c5ac0cd12
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright 2014 Lennart Poettering
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "util.h"
#include "verbs.h"
const char *name;
unsigned i;
int left;
for (i = 0;; i++) {
bool found;
/* At the end of the list? */
if (name)
else
log_error("Requires operation parameter.");
return -EINVAL;
}
if (name)
else
if (found) {
break;
}
}
if (!name)
left = 1;
log_error("Too few arguments.");
return -EINVAL;
}
log_error("Too many arguments.");
return -EINVAL;
}
if (name)
else {
char* fake[2] = {
};
}
}