mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-23 19:52:12 +03:00
Ungetlocalcopy return type has changed...
This commit is contained in:
parent
b5c8119459
commit
660b4b85ed
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user