It is perfectly valid to have NULL modes. The default configuration
for suspend to ram is such a case.
Having NULL states doesn't make any sense other than no suspension is
possible any more. But a user might have set any *State value to an
empty string, so better assume (and assert) nothing here.
#else
int do_sleep(const char *verb, char **modes, char **states) {
assert(verb);
- assert(modes);
- assert(states);
-
arg_verb = (char*)verb;
return execute(modes, states);
}