* file.c (panel_get_file): Use g_assert_not_reached().

* key.c (xgetch_second): Make static.
This commit is contained in:
Pavel Roskin 2001-07-20 16:19:28 +00:00
parent d3b48bfdb2
commit 2dd2dc2182
3 changed files with 9 additions and 5 deletions

View File

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

View File

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

View File

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