Fixed errors and warnings in compilation stage.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Этот коммит содержится в:
родитель
9970def1c2
Коммит
8f48bf2aec
@ -618,7 +618,7 @@ ftpfs_load_no_proxy_list (void)
|
||||
while (fgets (s, sizeof (s), npf) != NULL)
|
||||
{
|
||||
p = strchr (s, '\n');
|
||||
if (p == NULL) { /* skip bogus entries */
|
||||
if (p == NULL) /* skip bogus entries */
|
||||
{
|
||||
while ((c = fgetc (npf)) != EOF && c != '\n')
|
||||
;
|
||||
|
@ -981,8 +981,8 @@ mcfs_utime (struct vfs_class *me, const char *path, struct utimbuf *times)
|
||||
|
||||
(void) me;
|
||||
|
||||
remote_file = mcfs_get_path (&mc, path);
|
||||
if (remote_file == NULL)
|
||||
file = mcfs_get_path (&mc, path);
|
||||
if (file == NULL)
|
||||
return -1;
|
||||
|
||||
status = 0;
|
||||
@ -1075,8 +1075,8 @@ mcfs_chdir (struct vfs_class *me, const char *path)
|
||||
|
||||
(void) me;
|
||||
|
||||
remote_file = mcfs_get_path (&mc, path);
|
||||
if (remote_file == NULL)
|
||||
remote_dir = mcfs_get_path (&mc, path);
|
||||
if (remote_dir == NULL)
|
||||
return -1;
|
||||
|
||||
rpc_send (mc->sock, RPC_INT, MC_CHDIR, RPC_STRING, remote_dir,
|
||||
|
@ -44,6 +44,7 @@
|
||||
|
||||
#ifdef ENABLE_VFS
|
||||
#include "lib/vfs/mc-vfs/vfs.h" /* vfs_timeout */
|
||||
#include "lib/vfs/mc-vfs/vfs-impl.h"
|
||||
#endif
|
||||
|
||||
#ifdef USE_NETCODE
|
||||
|
@ -2806,7 +2806,7 @@ dview_event (Gpm_Event * event, void *x)
|
||||
int result = MOU_NORMAL;
|
||||
|
||||
/* We are not interested in the release events */
|
||||
if (event->type & (GPM_DOWN | GPM_DRAG) == 0)
|
||||
if ((event->type & (GPM_DOWN | GPM_DRAG)) == 0)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user