1
1

* vfs/fish.c (FISH_OP): Remove the second argument since it is unused.

Fix the macro usage troughout.
(XTEST): Remove unused macro.
Этот коммит содержится в:
Pavel Tsekov 2007-10-29 13:31:44 +00:00
родитель 4a895496c7
Коммит 7d113d0125
2 изменённых файлов: 13 добавлений и 8 удалений

Просмотреть файл

@ -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> 2007-10-26 Pavel Tsekov <ptsekov@gmx.net>
* fish.c (fish_linear_start): Fix a hang when retrieving unreadable * fish.c (fish_linear_start): Fix a hang when retrieving unreadable

Просмотреть файл

@ -775,7 +775,7 @@ fish_chmod (struct vfs_class *me, const char *path, int mode)
POSTFIX(OPT_FLUSH); 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) \ static int fish_##name (struct vfs_class *me, const char *path1, const char *path2) \
{ \ { \
char buf[BUF_LARGE]; \ 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); \ return fish_send_command(me, super2, buf, OPT_FLUSH); \
} }
#define XTEST if (bucket1 != bucket2) { ERRNOR (EXDEV, -1); } FISH_OP(rename, "#RENAME /%s /%s\n"
FISH_OP(rename, XTEST, "#RENAME /%s /%s\n" "mv /%s /%s 2>/dev/null\n"
"mv /%s /%s 2>/dev/null\n" "echo '### 000'" )
"echo '### 000'" ) FISH_OP(link, "#LINK /%s /%s\n"
FISH_OP(link, XTEST, "#LINK /%s /%s\n" "ln /%s /%s 2>/dev/null\n"
"ln /%s /%s 2>/dev/null\n" "echo '### 000'" )
"echo '### 000'" )
static int fish_symlink (struct vfs_class *me, const char *setto, const char *path) static int fish_symlink (struct vfs_class *me, const char *setto, const char *path)
{ {