From 86da022558ddcf098c301c480468aaf6b79fbc33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C3=85strand?= Date: Sat, 17 Apr 2004 07:14:41 +0000 Subject: [PATCH] Made internal functions static. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@663 423420c4-83ab-492f-b58f-81f9feb106b5 --- disk.c | 16 ++++++++-------- parallel.c | 4 ++-- printer.c | 3 ++- printercache.c | 8 ++++---- 4 files changed, 16 insertions(+), 15 deletions(-) diff --git a/disk.c b/disk.c index 79d64d9..9e795e0 100644 --- a/disk.c +++ b/disk.c @@ -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) { diff --git a/parallel.c b/parallel.c index 8e09c46..becc984 100644 --- a/parallel.c +++ b/parallel.c @@ -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); diff --git a/printer.c b/printer.c index 84d5d1f..125f237 100644 --- a/printer.c +++ b/printer.c @@ -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 */ }; + diff --git a/printercache.c b/printercache.c index ee48237..1252486 100644 --- a/printercache.c +++ b/printercache.c @@ -36,7 +36,7 @@ #include #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;