* 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>
|
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.
|
* main.c (default_map) [HAVE_X]: Disable Alt-T.
|
||||||
* cmd.c [HAVE_X]: Eliminate set_basic_panel_listing_to() and
|
* cmd.c [HAVE_X]: Eliminate set_basic_panel_listing_to() and
|
||||||
toggle_listing_cmd().
|
toggle_listing_cmd().
|
||||||
|
@ -1867,8 +1867,6 @@ setup_post (void)
|
|||||||
{
|
{
|
||||||
setup_sigwinch ();
|
setup_sigwinch ();
|
||||||
|
|
||||||
init_uid_gid_cache ();
|
|
||||||
|
|
||||||
#ifndef HAVE_X
|
#ifndef HAVE_X
|
||||||
if (baudrate () < 9600 || slow_terminal){
|
if (baudrate () < 9600 || slow_terminal){
|
||||||
verbose = 0;
|
verbose = 0;
|
||||||
|
@ -161,19 +161,8 @@ typedef struct {
|
|||||||
char *string;
|
char *string;
|
||||||
} int_cache;
|
} int_cache;
|
||||||
|
|
||||||
int_cache uid_cache [UID_CACHE_SIZE];
|
static int_cache uid_cache [UID_CACHE_SIZE];
|
||||||
int_cache gid_cache [GID_CACHE_SIZE];
|
static 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 char *i_cache_match (int id, int_cache *cache, int size)
|
static char *i_cache_match (int id, int_cache *cache, int size)
|
||||||
{
|
{
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user