* utilunix.c (uid_cache): Make static.
(gid_cache): Likewise. (init_uid_gid_cache): Remove. * main.c (setup_post): Don't call init_uid_gid_cache().
Этот коммит содержится в:
родитель
9e7e7037f8
Коммит
5fd1f032f3
@ -1,5 +1,10 @@
|
||||
2001-07-14 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* utilunix.c (uid_cache): Make static.
|
||||
(gid_cache): Likewise.
|
||||
(init_uid_gid_cache): Remove.
|
||||
* main.c (setup_post): Don't call init_uid_gid_cache().
|
||||
|
||||
* main.c (default_map) [HAVE_X]: Disable Alt-T.
|
||||
* cmd.c [HAVE_X]: Eliminate set_basic_panel_listing_to() and
|
||||
toggle_listing_cmd().
|
||||
|
@ -1867,8 +1867,6 @@ setup_post (void)
|
||||
{
|
||||
setup_sigwinch ();
|
||||
|
||||
init_uid_gid_cache ();
|
||||
|
||||
#ifndef HAVE_X
|
||||
if (baudrate () < 9600 || slow_terminal){
|
||||
verbose = 0;
|
||||
|
@ -161,19 +161,8 @@ typedef struct {
|
||||
char *string;
|
||||
} int_cache;
|
||||
|
||||
int_cache uid_cache [UID_CACHE_SIZE];
|
||||
int_cache gid_cache [GID_CACHE_SIZE];
|
||||
|
||||
void init_uid_gid_cache (void)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < UID_CACHE_SIZE; i++)
|
||||
uid_cache [i].string = 0;
|
||||
|
||||
for (i = 0; i < GID_CACHE_SIZE; i++)
|
||||
gid_cache [i].string = 0;
|
||||
}
|
||||
static int_cache uid_cache [UID_CACHE_SIZE];
|
||||
static int_cache gid_cache [GID_CACHE_SIZE];
|
||||
|
||||
static char *i_cache_match (int id, int_cache *cache, int size)
|
||||
{
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user