Made internal functions static.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@663 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2004-04-17 07:14:41 +00:00
parent cb4b27a5e6
commit 86da022558
4 changed files with 16 additions and 15 deletions

16
disk.c
View File

@ -84,7 +84,7 @@ typedef struct
} FsInfoType;
time_t
static time_t
get_create_time(struct stat *st)
{
time_t ret, ret1;
@ -99,7 +99,7 @@ get_create_time(struct stat *st)
}
/* Convert seconds since 1970 to a filetime */
void
static void
seconds_since_1970_to_filetime(time_t seconds, uint32 * high, uint32 * low)
{
unsigned long long ticks;
@ -110,7 +110,7 @@ seconds_since_1970_to_filetime(time_t seconds, uint32 * high, uint32 * low)
}
/* Convert seconds since 1970 back to filetime */
time_t
static time_t
convert_1970_to_filetime(uint32 high, uint32 low)
{
unsigned long long ticks;
@ -162,7 +162,7 @@ disk_enum_devices(uint32 * id, char *optarg)
}
/* Opens or creates a file or directory */
NTSTATUS
static NTSTATUS
disk_create(uint32 device_id, uint32 accessmask, uint32 sharemode, uint32 create_disposition,
uint32 flags_and_attributes, char *filename, HANDLE * phandle)
{
@ -319,7 +319,7 @@ disk_create(uint32 device_id, uint32 accessmask, uint32 sharemode, uint32 create
return STATUS_SUCCESS;
}
NTSTATUS
static NTSTATUS
disk_close(HANDLE handle)
{
struct fileinfo *pfinfo;
@ -339,7 +339,7 @@ disk_close(HANDLE handle)
return STATUS_SUCCESS;
}
NTSTATUS
static NTSTATUS
disk_read(HANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)
{
int n;
@ -376,7 +376,7 @@ disk_read(HANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * re
return STATUS_SUCCESS;
}
NTSTATUS
static NTSTATUS
disk_write(HANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)
{
int n;
@ -668,7 +668,7 @@ disk_set_information(HANDLE handle, uint32 info_class, STREAM in, STREAM out)
return STATUS_SUCCESS;
}
FsInfoType *
static FsInfoType *
FsVolumeInfo(char *fpath)
{

View File

@ -18,7 +18,7 @@ extern int errno;
extern RDPDR_DEVICE g_rdpdr_device[];
PARALLEL_DEVICE *
static PARALLEL_DEVICE *
get_parallel_data(HANDLE handle)
{
int index;
@ -111,7 +111,7 @@ parallel_close(HANDLE handle)
return STATUS_SUCCESS;
}
NTSTATUS
static NTSTATUS
parallel_read(HANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)
{
*result = read(handle, data, length);

View File

@ -2,7 +2,7 @@
extern RDPDR_DEVICE g_rdpdr_device[];
PRINTER *
static PRINTER *
get_printer_data(HANDLE handle)
{
int index;
@ -143,3 +143,4 @@ DEVICE_FNS printer_fns = {
printer_write,
NULL /* device_control */
};

View File

@ -36,7 +36,7 @@
#include <string.h>
#include "rdesktop.h"
BOOL
static BOOL
printercache_mkdir(char *base, char *printer)
{
char *path;
@ -72,7 +72,7 @@ printercache_mkdir(char *base, char *printer)
return True;
}
BOOL
static BOOL
printercache_unlink_blob(char *printer)
{
char *path;
@ -109,7 +109,7 @@ printercache_unlink_blob(char *printer)
}
BOOL
static BOOL
printercache_rename_blob(char *printer, char *new_printer)
{
char *printer_path;
@ -190,7 +190,7 @@ printercache_load_blob(char *printer_name, uint8 ** data)
return length;
}
void
static void
printercache_save_blob(char *printer_name, uint8 * data, uint32 length)
{
char *home, *path;