diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-24 12:35:02 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-29 21:55:52 +0200 |
commit | 2cc7b0a25f7307a50fdad38ee4a2c6b9d856fff9 (patch) | |
tree | b3081800bf2f3d9b3d7a7f42b040ec5deaadc074 | |
parent | eca830bee94e2cd24add44a5aa5c1836f54da27a (diff) |
systemctl: rename parse_time_spec() to parse_shutdown_time_spec()
Let's clarify that this function is specific to shutdown time
specifications, nothing else.
-rw-r--r-- | src/systemctl/systemctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index c85c5e011b..7ee1e8d801 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -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; |