mirror of https://github.com/MidnightCommander/mc
* cmd.c (nice_cd): Fix conditions when this function is
compiled.
This commit is contained in:
parent
3697034770
commit
ff8cf87949
|
@ -1,5 +1,8 @@
|
||||||
2002-09-05 Pavel Roskin <proski@gnu.org>
|
2002-09-05 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* cmd.c (nice_cd): Fix conditions when this function is
|
||||||
|
compiled.
|
||||||
|
|
||||||
* fs.h: Replace S_IFFIFO with S_IFIFO, which is the right name.
|
* fs.h: Replace S_IFFIFO with S_IFIFO, which is the right name.
|
||||||
|
|
||||||
* fs.h: Correct S_IS* definitions to use S_IFMT. Add fallback
|
* fs.h: Correct S_IS* definitions to use S_IFMT. Add fallback
|
||||||
|
|
23
src/cmd.c
23
src/cmd.c
|
@ -1273,11 +1273,9 @@ char *get_random_hint (void)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_NETCODE
|
#if defined(USE_NETCODE) || defined(USE_EXT2FSLIB)
|
||||||
|
static void
|
||||||
static char *machine_str = N_(" Enter machine name (F1 for details): ");
|
nice_cd (char *text, char *xtext, char *help, char *prefix, int to_home)
|
||||||
|
|
||||||
static void nice_cd (char *text, char *xtext, char *help, char *prefix, int to_home)
|
|
||||||
{
|
{
|
||||||
char *machine;
|
char *machine;
|
||||||
char *cd_path;
|
char *cd_path;
|
||||||
|
@ -1306,30 +1304,41 @@ static void nice_cd (char *text, char *xtext, char *help, char *prefix, int to_h
|
||||||
g_free (cd_path);
|
g_free (cd_path);
|
||||||
g_free (machine);
|
g_free (machine);
|
||||||
}
|
}
|
||||||
|
#endif /* USE_NETCODE || USE_EXT2FSLIB */
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef USE_NETCODE
|
||||||
|
|
||||||
|
static char *machine_str = N_(" Enter machine name (F1 for details): ");
|
||||||
|
|
||||||
#ifdef WITH_MCFS
|
#ifdef WITH_MCFS
|
||||||
void netlink_cmd (void)
|
void netlink_cmd (void)
|
||||||
{
|
{
|
||||||
nice_cd (_(" Link to a remote machine "), _(machine_str),
|
nice_cd (_(" Link to a remote machine "), _(machine_str),
|
||||||
"[Network File System]", "/#mc:", 1);
|
"[Network File System]", "/#mc:", 1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* WITH_MCFS */
|
||||||
|
|
||||||
void ftplink_cmd (void)
|
void ftplink_cmd (void)
|
||||||
{
|
{
|
||||||
nice_cd (_(" FTP to machine "), _(machine_str),
|
nice_cd (_(" FTP to machine "), _(machine_str),
|
||||||
"[FTP File System]", "/#ftp:", 1);
|
"[FTP File System]", "/#ftp:", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void fishlink_cmd (void)
|
void fishlink_cmd (void)
|
||||||
{
|
{
|
||||||
nice_cd (_(" Shell link to machine "), _(machine_str),
|
nice_cd (_(" Shell link to machine "), _(machine_str),
|
||||||
"[FIle transfer over SHell filesystem]", "/#sh:", 1);
|
"[FIle transfer over SHell filesystem]", "/#sh:", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WITH_SMBFS
|
#ifdef WITH_SMBFS
|
||||||
void smblink_cmd (void)
|
void smblink_cmd (void)
|
||||||
{
|
{
|
||||||
nice_cd (_(" SMB link to machine "), _(machine_str),
|
nice_cd (_(" SMB link to machine "), _(machine_str),
|
||||||
"[SMB File System]", "/#smb:", 0);
|
"[SMB File System]", "/#smb:", 0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* WITH_SMBFS */
|
||||||
|
|
||||||
#ifdef HAVE_SETSOCKOPT
|
#ifdef HAVE_SETSOCKOPT
|
||||||
void source_routing (void)
|
void source_routing (void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue