mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-13 03:13:08 +03:00
Ticket #1475: warningis fix
view.c:3237: format not a string literal and no format arguments utilunix.c:171, utilunix.c:173: assignment discards qualifiers from pointer target type Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
This commit is contained in:
parent
87f3cd1cda
commit
1692e737c4
@ -164,7 +164,8 @@ int my_system (int flags, const char *shell, const char *command)
|
||||
execl (shell, shell, "-c", command, (char *) NULL);
|
||||
else
|
||||
{
|
||||
gchar **shell_tokens, *only_cmd;
|
||||
gchar **shell_tokens;
|
||||
const gchar *only_cmd;
|
||||
shell_tokens = g_strsplit(shell," ", 2);
|
||||
|
||||
if (shell_tokens == NULL)
|
||||
|
@ -3234,7 +3234,7 @@ do_search (WView *view)
|
||||
|
||||
if (!isFound){
|
||||
if (view->search->error_str)
|
||||
message (D_NORMAL, _("Search"), view->search->error_str);
|
||||
message (D_NORMAL, _("Search"), "%s", view->search->error_str);
|
||||
}
|
||||
|
||||
view->dirty++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user