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:
Mikhail S. Pobolovets 2009-08-06 10:20:16 +03:00
parent 87f3cd1cda
commit 1692e737c4
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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++;