Warning fixes.

This commit is contained in:
Pavel Roskin 2002-11-15 07:49:39 +00:00
parent 8bc3193273
commit dd621c3f36
4 changed files with 11 additions and 9 deletions

View File

@ -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) {

View File

@ -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 */

View File

@ -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

View File

@ -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);