mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* file.c (panel_get_file): Use g_assert_not_reached().
* key.c (xgetch_second): Make static.
This commit is contained in:
parent
d3b48bfdb2
commit
2dd2dc2182
@ -1,3 +1,8 @@
|
||||
2001-07-20 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* file.c (panel_get_file): Use g_assert_not_reached().
|
||||
* key.c (xgetch_second): Make static.
|
||||
|
||||
2001-07-19 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* user.c (check_format_view): Match "unform" instead of
|
||||
|
@ -1556,9 +1556,8 @@ panel_get_file (WPanel *panel, struct stat *stat_buf)
|
||||
*stat_buf = panel->dir.list [panel->selected].buf;
|
||||
return panel->dir.list [panel->selected].fname;
|
||||
}
|
||||
fprintf (stderr, _(" Internal error: get_file \n"));
|
||||
mi_getch ();
|
||||
return "";
|
||||
g_assert_not_reached ();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -88,7 +88,7 @@ static key_def *keys = 0;
|
||||
static int input_fd;
|
||||
static fd_set select_set;
|
||||
static int disabled_channels = 0; /* Disable channels checking */
|
||||
int xgetch_second (void);
|
||||
static int xgetch_second (void);
|
||||
|
||||
/* File descriptor monitoring add/remove routines */
|
||||
typedef struct SelectList {
|
||||
@ -800,7 +800,7 @@ int mi_getch ()
|
||||
return key;
|
||||
}
|
||||
|
||||
int xgetch_second (void)
|
||||
static int xgetch_second (void)
|
||||
{
|
||||
fd_set Read_FD_Set;
|
||||
int c;
|
||||
|
Loading…
Reference in New Issue
Block a user