mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Warning fixes.
This commit is contained in:
parent
8bc3193273
commit
dd621c3f36
@ -1221,7 +1221,6 @@ static int
|
||||
mcfs_invalidate_socket (int sock)
|
||||
{
|
||||
int i, j = -1;
|
||||
extern int mc_chdir (char *);
|
||||
|
||||
for (i = 0; i < MCFS_MAX_CONNECTIONS; i++)
|
||||
if (mcfs_connections[i].sock == sock) {
|
||||
|
14
vfs/mcfs.h
14
vfs/mcfs.h
@ -1,3 +1,6 @@
|
||||
#ifndef __MCFS_H
|
||||
#define __MCFS_H
|
||||
|
||||
#define mcserver_port 9876
|
||||
|
||||
/* This number was registered for program "mcfs" with rpc@Sun.COM */
|
||||
@ -35,9 +38,9 @@ enum {
|
||||
/* Control commands */
|
||||
MC_LOGIN,
|
||||
MC_QUIT,
|
||||
|
||||
MC_UTIME, /* it has to go here for compatibility with old
|
||||
servers/clients. sigh ... */
|
||||
|
||||
MC_UTIME, /* it has to go here for compatibility with old
|
||||
servers/clients. sigh ... */
|
||||
|
||||
MC_INVALID_PASS = 0x1000,
|
||||
MC_NEED_PASSWORD,
|
||||
@ -45,5 +48,8 @@ enum {
|
||||
MC_VERSION_OK,
|
||||
MC_VERSION_MISMATCH,
|
||||
MC_PASS
|
||||
|
||||
};
|
||||
|
||||
extern void tcp_invalidate_socket (int);
|
||||
|
||||
#endif /* __MCFS_H */
|
||||
|
@ -50,9 +50,6 @@
|
||||
#define CHECK_SIG_PIPE(sock) if (got_sigpipe) \
|
||||
{ tcp_invalidate_socket (sock); return got_sigpipe = 0; }
|
||||
|
||||
extern void tcp_invalidate_socket (int);
|
||||
extern void vfs_die (char *);
|
||||
|
||||
/* Reads a block on dest for len bytes from sock */
|
||||
/* Returns a boolean indicating the success status */
|
||||
int
|
||||
|
@ -1335,7 +1335,7 @@ main (int argc, char *argv[])
|
||||
|
||||
/* FIXME: This function should not be used in mcserv */
|
||||
void
|
||||
vfs_die (char *m)
|
||||
vfs_die (const char *m)
|
||||
{
|
||||
fputs (m, stderr);
|
||||
exit (1);
|
||||
|
Loading…
Reference in New Issue
Block a user