Make deprecated rdp_out_unistr() static

This commit is contained in:
Henrik Andersson 2017-09-29 16:29:00 +02:00
parent ff1a42f809
commit 594438e5eb
2 changed files with 4 additions and 3 deletions

View File

@ -146,7 +146,6 @@ RD_BOOL rd_lock_file(int fd, int start, int len);
/* rdp5.c */
void rdp5_process(STREAM s);
/* rdp.c */
void rdp_out_unistr(STREAM s, char *string, int len);
void rdp_in_unistr(STREAM s, int in_len, char **string, uint32 * str_size);
void rdp_send_input(uint32 time, uint16 message_type, uint16 device_flags, uint16 param1,
uint16 param2);

6
rdp.c
View File

@ -80,6 +80,8 @@ extern RD_BOOL g_has_reconnect_random;
extern uint8 g_client_random[SEC_RANDOM_SIZE];
static uint32 g_packetno;
static void rdp_out_unistr(STREAM s, char *string, int len);
/* Receive an RDP packet */
static STREAM
rdp_recv(uint8 * type)
@ -171,7 +173,7 @@ rdp_send_data(STREAM s, uint8 data_pdu_type)
/* Output a string in Unicode with mandatory null termination. If
string is NULL or len is 0, write an unicode null termination to
stream. */
void
static void
rdp_out_unistr_mandatory_null(STREAM s, char *string, int len)
{
/* LEGACY:
@ -187,7 +189,7 @@ rdp_out_unistr_mandatory_null(STREAM s, char *string, int len)
}
/* Output a string in Unicode */
void
static void
rdp_out_unistr(STREAM s, char *string, int len)
{
/* LEGACY: