mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
Remove vars which are not needed
This commit is contained in:
parent
b166e7f232
commit
5493da68a2
10
vfs/fish.c
10
vfs/fish.c
@ -413,8 +413,6 @@ fish_dir_load(struct vfs_class *me, struct vfs_s_inode *dir, char *remote_path)
|
|||||||
switch(buffer[0]) {
|
switch(buffer[0]) {
|
||||||
case ':': {
|
case ':': {
|
||||||
char *copy_buffer = buffer+1;
|
char *copy_buffer = buffer+1;
|
||||||
char *foobar;
|
|
||||||
int seen = 0;
|
|
||||||
char *filename = buffer+1;
|
char *filename = buffer+1;
|
||||||
char *linkname = buffer+1;
|
char *linkname = buffer+1;
|
||||||
if (!strcmp(buffer+1, ".") || !strcmp(buffer+1, ".."))
|
if (!strcmp(buffer+1, ".") || !strcmp(buffer+1, ".."))
|
||||||
@ -431,10 +429,10 @@ fish_dir_load(struct vfs_class *me, struct vfs_s_inode *dir, char *remote_path)
|
|||||||
strncpy(ent->name,linkname,f_size);
|
strncpy(ent->name,linkname,f_size);
|
||||||
ent->name[f_size] = '\0';
|
ent->name[f_size] = '\0';
|
||||||
ent->ino->linkname = strdup(filename + 4);
|
ent->ino->linkname = strdup(filename + 4);
|
||||||
} else {
|
} else {
|
||||||
ent->name = g_strdup(buffer+1);
|
ent->name = g_strdup(buffer+1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'S':
|
case 'S':
|
||||||
#ifdef HAVE_ATOLL
|
#ifdef HAVE_ATOLL
|
||||||
|
Loading…
Reference in New Issue
Block a user