mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +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)
|
||||
*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 */
|
||||
@ -147,7 +147,7 @@ edit_lock_file (char *fname)
|
||||
g_strdup_printf (_
|
||||
("File \"%s\" is already being edited\n"
|
||||
"User: %s\nProcess ID: %d"), fname,
|
||||
lockinfo->who, lockinfo->pid);
|
||||
lockinfo->who, (int) lockinfo->pid);
|
||||
/* TODO: Implement "Abort" - needs to rewind undo stack */
|
||||
switch (edit_query_dialog2
|
||||
(_("File locked"), msg, _("&Grab lock"),
|
||||
|
Loading…
Reference in New Issue
Block a user