mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
escape: Make quote_command_line() argument const
This commit is contained in:
committed by
Daan De Meyer
parent
8ba6c2b7f5
commit
6ed684db41
@@ -598,7 +598,7 @@ char* shell_maybe_quote(const char *s, ShellEscapeFlags flags) {
|
||||
return str_realloc(buf);
|
||||
}
|
||||
|
||||
char* quote_command_line(char **argv, ShellEscapeFlags flags) {
|
||||
char* quote_command_line(char * const *argv, ShellEscapeFlags flags) {
|
||||
_cleanup_free_ char *result = NULL;
|
||||
|
||||
assert(argv);
|
||||
|
||||
@@ -65,4 +65,4 @@ char* escape_non_printable_full(const char *str, size_t console_width, XEscapeFl
|
||||
|
||||
char* shell_escape(const char *s, const char *bad);
|
||||
char* shell_maybe_quote(const char *s, ShellEscapeFlags flags);
|
||||
char* quote_command_line(char **argv, ShellEscapeFlags flags);
|
||||
char* quote_command_line(char * const *argv, ShellEscapeFlags flags);
|
||||
|
||||
Reference in New Issue
Block a user