* cmd.c: Remove source routing code.

* main.c: Likewise.
This commit is contained in:
Pavel Roskin 2003-10-24 20:10:01 +00:00
parent be3fa535ba
commit b6d7cae6d2
4 changed files with 3 additions and 29 deletions

View File

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

View File

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

View File

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

View File

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