mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* cmd.c: Remove source routing code.
* main.c: Likewise.
This commit is contained in:
parent
be3fa535ba
commit
b6d7cae6d2
@ -1,5 +1,8 @@
|
||||
2003-10-24 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* cmd.c: Remove source routing code.
|
||||
* main.c: Likewise.
|
||||
|
||||
* screen.c (user_file_menu_cmd): Move ...
|
||||
* cmd.c: ... here.
|
||||
* cmd.h: Remove unused declarations.
|
||||
|
25
src/cmd.c
25
src/cmd.c
@ -78,9 +78,6 @@
|
||||
/* If set and you don't have subshell support,then C-o will give you a shell */
|
||||
int output_starts_shell = 0;
|
||||
|
||||
/* Source routing destination */
|
||||
int source_route = 0;
|
||||
|
||||
/* If set, use the builtin editor */
|
||||
int use_internal_edit = 1;
|
||||
|
||||
@ -1194,28 +1191,6 @@ void smblink_cmd (void)
|
||||
"[SMB File System]", "/#smb:", 0);
|
||||
}
|
||||
#endif /* WITH_SMBFS */
|
||||
|
||||
#ifdef HAVE_SETSOCKOPT
|
||||
void source_routing (void)
|
||||
{
|
||||
char *source;
|
||||
struct hostent *hp;
|
||||
|
||||
source = input_dialog (_(" Socket source routing setup "),
|
||||
_(" Enter host name to use as a source routing hop: "),
|
||||
"");
|
||||
if (!source)
|
||||
return;
|
||||
|
||||
hp = gethostbyname (source);
|
||||
g_free (source);
|
||||
if (!hp){
|
||||
message (1, _(" Host name "), _(" Error while looking up IP address "));
|
||||
return;
|
||||
}
|
||||
source_route = *((int *)hp->h_addr);
|
||||
}
|
||||
#endif /* HAVE_SETSOCKOPT */
|
||||
#endif /* USE_NETCODE */
|
||||
|
||||
#ifdef USE_EXT2FSLIB
|
||||
|
@ -48,7 +48,6 @@ void view_other_cmd (void);
|
||||
void quick_cd_cmd (void);
|
||||
void save_setup_cmd (void);
|
||||
char *get_random_hint (int force);
|
||||
void source_routing (void);
|
||||
void user_file_menu_cmd (void);
|
||||
char *guess_message_value (void);
|
||||
void info_cmd (void);
|
||||
|
@ -1241,9 +1241,6 @@ static const key_map ctl_x_map[] = {
|
||||
#ifdef WITH_BACKGROUND
|
||||
{'j', jobs_cmd},
|
||||
#endif /* WITH_BACKGROUND */
|
||||
#ifdef HAVE_SETSOCKOPT
|
||||
{'%', source_routing},
|
||||
#endif /* HAVE_SETSOCKOPT */
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user