fix compiler warnings
remove unused get_parallel_data git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@831 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
f589939e23
commit
dad0c173e4
2
disk.c
2
disk.c
@ -925,9 +925,9 @@ static FsInfoType *
|
|||||||
FsVolumeInfo(char *fpath)
|
FsVolumeInfo(char *fpath)
|
||||||
{
|
{
|
||||||
|
|
||||||
FILE *fdfs;
|
|
||||||
static FsInfoType info;
|
static FsInfoType info;
|
||||||
#ifdef HAVE_MNTENT_H
|
#ifdef HAVE_MNTENT_H
|
||||||
|
FILE *fdfs;
|
||||||
struct mntent *e;
|
struct mntent *e;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
15
parallel.c
15
parallel.c
@ -18,19 +18,6 @@ extern int errno;
|
|||||||
|
|
||||||
extern RDPDR_DEVICE g_rdpdr_device[];
|
extern RDPDR_DEVICE g_rdpdr_device[];
|
||||||
|
|
||||||
static PARALLEL_DEVICE *
|
|
||||||
get_parallel_data(NTHANDLE handle)
|
|
||||||
{
|
|
||||||
int index;
|
|
||||||
|
|
||||||
for (index = 0; index < RDPDR_MAX_DEVICES; index++)
|
|
||||||
{
|
|
||||||
if (handle == g_rdpdr_device[index].handle)
|
|
||||||
return (PARALLEL_DEVICE *) g_rdpdr_device[index].pdevice_data;
|
|
||||||
}
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Enumeration of devices from rdesktop.c */
|
/* Enumeration of devices from rdesktop.c */
|
||||||
/* returns numer of units found and initialized. */
|
/* returns numer of units found and initialized. */
|
||||||
@ -126,7 +113,9 @@ parallel_write(NTHANDLE handle, uint8 * data, uint32 length, uint32 offset, uint
|
|||||||
int n = write(handle, data, length);
|
int n = write(handle, data, length);
|
||||||
if (n < 0)
|
if (n < 0)
|
||||||
{
|
{
|
||||||
|
#if defined(LPGETSTATUS)
|
||||||
int status;
|
int status;
|
||||||
|
#endif
|
||||||
|
|
||||||
*result = 0;
|
*result = 0;
|
||||||
switch (errno)
|
switch (errno)
|
||||||
|
Loading…
Reference in New Issue
Block a user