mirror of https://github.com/MidnightCommander/mc
* vfs/fish.c (FISH_OP): Remove the second argument since it is unused.
Fix the macro usage troughout. (XTEST): Remove unused macro.
This commit is contained in:
parent
4a895496c7
commit
7d113d0125
|
@ -1,3 +1,9 @@
|
|||
2007-10-29 Pavel Tsekov <ptsekov@gmx.net>
|
||||
|
||||
* fish.c (FISH_OP): Remove the second argument since it is unused.
|
||||
Fix the macro usage troughout.
|
||||
(XTEST): Remove unused macro.
|
||||
|
||||
2007-10-26 Pavel Tsekov <ptsekov@gmx.net>
|
||||
|
||||
* fish.c (fish_linear_start): Fix a hang when retrieving unreadable
|
||||
|
|
15
vfs/fish.c
15
vfs/fish.c
|
@ -775,7 +775,7 @@ fish_chmod (struct vfs_class *me, const char *path, int mode)
|
|||
POSTFIX(OPT_FLUSH);
|
||||
}
|
||||
|
||||
#define FISH_OP(name, chk, string) \
|
||||
#define FISH_OP(name, string) \
|
||||
static int fish_##name (struct vfs_class *me, const char *path1, const char *path2) \
|
||||
{ \
|
||||
char buf[BUF_LARGE]; \
|
||||
|
@ -801,13 +801,12 @@ static int fish_##name (struct vfs_class *me, const char *path1, const char *pat
|
|||
return fish_send_command(me, super2, buf, OPT_FLUSH); \
|
||||
}
|
||||
|
||||
#define XTEST if (bucket1 != bucket2) { ERRNOR (EXDEV, -1); }
|
||||
FISH_OP(rename, XTEST, "#RENAME /%s /%s\n"
|
||||
"mv /%s /%s 2>/dev/null\n"
|
||||
"echo '### 000'" )
|
||||
FISH_OP(link, XTEST, "#LINK /%s /%s\n"
|
||||
"ln /%s /%s 2>/dev/null\n"
|
||||
"echo '### 000'" )
|
||||
FISH_OP(rename, "#RENAME /%s /%s\n"
|
||||
"mv /%s /%s 2>/dev/null\n"
|
||||
"echo '### 000'" )
|
||||
FISH_OP(link, "#LINK /%s /%s\n"
|
||||
"ln /%s /%s 2>/dev/null\n"
|
||||
"echo '### 000'" )
|
||||
|
||||
static int fish_symlink (struct vfs_class *me, const char *setto, const char *path)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue