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:
Michael Gernoth 2005-03-08 01:01:47 +00:00
parent f589939e23
commit dad0c173e4
2 changed files with 3 additions and 14 deletions

2
disk.c
View File

@ -925,9 +925,9 @@ static FsInfoType *
FsVolumeInfo(char *fpath)
{
FILE *fdfs;
static FsInfoType info;
#ifdef HAVE_MNTENT_H
FILE *fdfs;
struct mntent *e;
#endif

View File

@ -18,19 +18,6 @@ extern int errno;
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 */
/* 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);
if (n < 0)
{
#if defined(LPGETSTATUS)
int status;
#endif
*result = 0;
switch (errno)