1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

systemctl: rename parse_time_spec() to parse_shutdown_time_spec()

Let's clarify that this function is specific to shutdown time
specifications, nothing else.
This commit is contained in:
Lennart Poettering 2015-09-24 12:35:02 +02:00
parent eca830bee9
commit 2cc7b0a25f

View File

@ -6769,7 +6769,7 @@ static int halt_parse_argv(int argc, char *argv[]) {
return 1;
}
static int parse_time_spec(const char *t, usec_t *_u) {
static int parse_shutdown_time_spec(const char *t, usec_t *_u) {
assert(t);
assert(_u);
@ -6899,7 +6899,7 @@ static int shutdown_parse_argv(int argc, char *argv[]) {
}
if (argc > optind && arg_action != ACTION_CANCEL_SHUTDOWN) {
r = parse_time_spec(argv[optind], &arg_when);
r = parse_shutdown_time_spec(argv[optind], &arg_when);
if (r < 0) {
log_error("Failed to parse time specification: %s", argv[optind]);
return r;