mirror of https://github.com/FDOS/kernel.git
Clear up confusing (void *)n using a macro.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@952 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
86a8e9c2d2
commit
f8be820925
|
@ -231,8 +231,7 @@ long DosRWSft(int sft_idx, size_t n, void FAR * bp, int mode)
|
||||||
lpCurSft = s;
|
lpCurSft = s;
|
||||||
current_filepos = s->sft_posit; /* needed for MSCDEX */
|
current_filepos = s->sft_posit; /* needed for MSCDEX */
|
||||||
dta = bp;
|
dta = bp;
|
||||||
XferCount = network_redirector_mx(mode == XFR_READ ? REM_READ : REM_WRITE,
|
XferCount = remote_rw(mode == XFR_READ ? REM_READ : REM_WRITE, s, n);
|
||||||
s, (void *)n);
|
|
||||||
dta = save_dta;
|
dta = save_dta;
|
||||||
return XferCount;
|
return XferCount;
|
||||||
}
|
}
|
||||||
|
|
|
@ -380,6 +380,7 @@ COUNT truename(const char FAR * src, char * dest, COUNT t);
|
||||||
int network_redirector(unsigned cmd);
|
int network_redirector(unsigned cmd);
|
||||||
int network_redirector_fp(unsigned cmd, void far *s);
|
int network_redirector_fp(unsigned cmd, void far *s);
|
||||||
long ASMPASCAL network_redirector_mx(unsigned cmd, void far *s, void *arg);
|
long ASMPASCAL network_redirector_mx(unsigned cmd, void far *s, void *arg);
|
||||||
|
#define remote_rw(cmd,s,arg) (int)network_redirector_mx(cmd, s, (void *)arg)
|
||||||
#define remote_getfree(s,d) (int)network_redirector_mx(REM_GETSPACE, s, d)
|
#define remote_getfree(s,d) (int)network_redirector_mx(REM_GETSPACE, s, d)
|
||||||
#define remote_lseek(s,new_pos) network_redirector_mx(REM_LSEEK, s, &new_pos)
|
#define remote_lseek(s,new_pos) network_redirector_mx(REM_LSEEK, s, &new_pos)
|
||||||
#define remote_setfattr(attr) (int)network_redirector_mx(REM_SETATTR, NULL, (void *)attr)
|
#define remote_setfattr(attr) (int)network_redirector_mx(REM_SETATTR, NULL, (void *)attr)
|
||||||
|
|
Loading…
Reference in New Issue