mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
Avoid compiler warning using gcc/Solaris8.
This commit is contained in:
parent
6d483846cb
commit
d1b57fbf7f
@ -63,7 +63,7 @@ lock_build_name (char *fname)
|
|||||||
if (gethostname (host, BUF_SIZE - 1) == -1)
|
if (gethostname (host, BUF_SIZE - 1) == -1)
|
||||||
*host = '\0';
|
*host = '\0';
|
||||||
|
|
||||||
return g_strdup_printf ("%s@%s.%d", user, host, getpid ());
|
return g_strdup_printf ("%s@%s.%d", user, host, (int) getpid ());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Extract pid from user@host.domain.pid string */
|
/* Extract pid from user@host.domain.pid string */
|
||||||
@ -147,7 +147,7 @@ edit_lock_file (char *fname)
|
|||||||
g_strdup_printf (_
|
g_strdup_printf (_
|
||||||
("File \"%s\" is already being edited\n"
|
("File \"%s\" is already being edited\n"
|
||||||
"User: %s\nProcess ID: %d"), fname,
|
"User: %s\nProcess ID: %d"), fname,
|
||||||
lockinfo->who, lockinfo->pid);
|
lockinfo->who, (int) lockinfo->pid);
|
||||||
/* TODO: Implement "Abort" - needs to rewind undo stack */
|
/* TODO: Implement "Abort" - needs to rewind undo stack */
|
||||||
switch (edit_query_dialog2
|
switch (edit_query_dialog2
|
||||||
(_("File locked"), msg, _("&Grab lock"),
|
(_("File locked"), msg, _("&Grab lock"),
|
||||||
|
Loading…
Reference in New Issue
Block a user