mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
* cpio.c (cpio_skip_padding): Warning fix.
* fish.c (dir_load): Likewise. * mcfs.c: Likewise.
This commit is contained in:
parent
de997c6f3a
commit
2dc6461bba
@ -1,5 +1,9 @@
|
||||
2001-03-07 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* cpio.c (cpio_skip_padding): Warning fix.
|
||||
* fish.c (dir_load): Likewise.
|
||||
* mcfs.c: Likewise.
|
||||
|
||||
* extfs/uzip: New file from Oskar Liljeblad.
|
||||
* extfs/README.uzip: Likewise.
|
||||
* extfs/Makefile.am: Adjust for constant uzip.
|
||||
|
@ -119,6 +119,9 @@ static int cpio_skip_padding(vfs_s_super *super)
|
||||
case CPIO_NEWC:
|
||||
case CPIO_CRC:
|
||||
return CPIO_SEEK_CUR(super, (4 - (CPIO_POS(super) % 4)) % 4);
|
||||
default:
|
||||
g_assert_not_reached();
|
||||
return 42; /* & the compiler is happy :-) */
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -393,7 +393,7 @@ dir_load(vfs *me, vfs_s_inode *dir, char *remote_path)
|
||||
|
||||
switch(buffer[0]) {
|
||||
case ':': {
|
||||
char *c;
|
||||
/* char *c; */
|
||||
if (!strcmp(buffer+1, ".") || !strcmp(buffer+1, ".."))
|
||||
break; /* We'll do . and .. ourself */
|
||||
ent->name = g_strdup(buffer+1);
|
||||
|
@ -53,7 +53,6 @@
|
||||
#define MCFS_MAX_CONNECTIONS 32
|
||||
#define mcserver_port 9876
|
||||
|
||||
static mcfs_open_connections = 0;
|
||||
static struct _mcfs_connection {
|
||||
char *host;
|
||||
char *user;
|
||||
@ -301,6 +300,7 @@ static mcfs_connection *mcfs_get_free_bucket ()
|
||||
/* Returns a connected socket to host */
|
||||
static mcfs_connection *mcfs_open_link (char *host, char *user, int *port, char *netrcpass)
|
||||
{
|
||||
static int mcfs_open_connections = 0;
|
||||
int i, sock, version;
|
||||
mcfs_connection *bucket;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user