Ungetlocalcopy return type has changed...

This commit is contained in:
Pavel Machek 1999-11-11 14:50:50 +00:00
parent b5c8119459
commit 660b4b85ed
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,8 @@
1999-11-11 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* shared_ftp_fish.c (s_ungetlocalcopy): need to supply some return
value, too. This code is going to be killed, the sooner the better.
* *.c (mc_[un]getlocalcopy): we really need some return value,
because we can have errors

View File

@ -800,12 +800,12 @@ static char *s_getlocalcopy (vfs *me, char *path)
return p;
}
static void s_ungetlocalcopy (vfs *me, char *path, char *local, int has_changed)
static int s_ungetlocalcopy (vfs *me, char *path, char *local, int has_changed)
{
struct filp *fp = (struct filp *) s_open (me, path, O_WRONLY, 0);
if (fp == NULL)
return;
return 0;
if (!strcmp (fp->fe->local_filename, local)) {
fp->has_changed = has_changed;
qlock(fp->fe->bucket)--;
@ -816,6 +816,7 @@ static void s_ungetlocalcopy (vfs *me, char *path, char *local, int has_changed)
s_close ((void *) fp);
mc_def_ungetlocalcopy (me, path, local, has_changed);
}
return 0;
}
static void