enabled and fixed -Wmissing-prototypes compiler warnings
Co-authored-by: matt335672 <30179339+matt335672@users.noreply.github.com>
This commit is contained in:
@@ -341,16 +341,6 @@ list_dump_items(struct list *self)
|
||||
}
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
/**
|
||||
* Appends a string fragment to a list
|
||||
* @param[in,out] start Pointer to start of fragment (by reference)
|
||||
* @param end Pointer to one past end of fragment
|
||||
* @param list List to append to
|
||||
* @result 1 for success
|
||||
*
|
||||
* In the event of a memory failure, 0 is returned and the list is deleted.
|
||||
*/
|
||||
int
|
||||
split_string_append_fragment(const char **start, const char *end,
|
||||
struct list *list)
|
||||
|
||||
@@ -95,6 +95,19 @@ list_append_list_strdup(struct list *self, struct list *dest, int start_index);
|
||||
void
|
||||
list_dump_items(struct list *self);
|
||||
|
||||
/**
|
||||
* Appends a string fragment to a list
|
||||
* @param[in,out] start Pointer to start of fragment (by reference)
|
||||
* @param end Pointer to one past end of fragment
|
||||
* @param list List to append to
|
||||
* @result 1 for success
|
||||
*
|
||||
* In the event of a memory failure, 0 is returned and the list is deleted.
|
||||
*/
|
||||
int
|
||||
split_string_append_fragment(const char **start, const char *end,
|
||||
struct list *list);
|
||||
|
||||
/**
|
||||
* Splits a string on a separation character and then returns a list of
|
||||
* the string split by the character, without the character contained within
|
||||
|
||||
+4
-4
@@ -55,7 +55,7 @@ static struct log_config *g_staticLogConfig = NULL;
|
||||
* @return see open(2) return values
|
||||
*
|
||||
*/
|
||||
int
|
||||
static int
|
||||
internal_log_file_open(const char *fname)
|
||||
{
|
||||
int ret = -1;
|
||||
@@ -88,7 +88,7 @@ internal_log_file_open(const char *fname)
|
||||
* @return syslog equivalent logging level
|
||||
*
|
||||
*/
|
||||
int
|
||||
static int
|
||||
internal_log_xrdp2syslog(const enum logLevels lvl)
|
||||
{
|
||||
switch (lvl)
|
||||
@@ -275,7 +275,7 @@ internal_log_text2level(const char *buf)
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
struct log_config *
|
||||
static struct log_config *
|
||||
internal_config_read_logging(int file,
|
||||
const char *applicationName,
|
||||
const char *section_prefix)
|
||||
@@ -547,7 +547,7 @@ internal_log_config_copy_levels(struct log_config *dest,
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
internal_log_config_copy(struct log_config *dest, const struct log_config *src)
|
||||
{
|
||||
if (src != NULL && dest != NULL)
|
||||
|
||||
+15
-15
@@ -306,7 +306,7 @@ alloc_data (size_t n)
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
PIXMAN_EXPORT pixman_bool_t
|
||||
static PIXMAN_EXPORT pixman_bool_t
|
||||
PREFIX (_equal) (region_type_t *reg1, region_type_t *reg2)
|
||||
{
|
||||
int i;
|
||||
@@ -367,7 +367,7 @@ PREFIX (_equal) (region_type_t *reg1, region_type_t *reg2)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
PREFIX (_print) (region_type_t *rgn)
|
||||
{
|
||||
int num, size;
|
||||
@@ -429,7 +429,7 @@ PREFIX (_init_rect) (region_type_t *region,
|
||||
region->data = NULL;
|
||||
}
|
||||
|
||||
PIXMAN_EXPORT void
|
||||
static PIXMAN_EXPORT void
|
||||
PREFIX (_init_with_extents) (region_type_t *region, box_type_t *extents)
|
||||
{
|
||||
if (!GOOD_RECT (extents))
|
||||
@@ -453,7 +453,7 @@ PREFIX (_fini) (region_type_t *region)
|
||||
FREE_DATA (region);
|
||||
}
|
||||
|
||||
PIXMAN_EXPORT int
|
||||
static PIXMAN_EXPORT int
|
||||
PREFIX (_n_rects) (region_type_t *region)
|
||||
{
|
||||
return PIXREGION_NUMRECTS (region);
|
||||
@@ -551,7 +551,7 @@ pixman_rect_alloc (region_type_t *region,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
PIXMAN_EXPORT pixman_bool_t
|
||||
static PIXMAN_EXPORT pixman_bool_t
|
||||
PREFIX (_copy) (region_type_t *dst, region_type_t *src)
|
||||
{
|
||||
GOOD (dst);
|
||||
@@ -1408,7 +1408,7 @@ pixman_region_union_o (region_type_t *region,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
PIXMAN_EXPORT pixman_bool_t
|
||||
static PIXMAN_EXPORT pixman_bool_t
|
||||
PREFIX(_intersect_rect) (region_type_t *dest,
|
||||
region_type_t *source,
|
||||
int x, int y,
|
||||
@@ -1528,7 +1528,7 @@ PREFIX (_union) (region_type_t *new_reg,
|
||||
/* Convenience function for performing union of region with a
|
||||
* single rectangle
|
||||
*/
|
||||
PIXMAN_EXPORT pixman_bool_t
|
||||
static PIXMAN_EXPORT pixman_bool_t
|
||||
PREFIX (_union_rect) (region_type_t *dest,
|
||||
region_type_t *source,
|
||||
int x,
|
||||
@@ -2182,7 +2182,7 @@ PREFIX (_subtract) (region_type_t *reg_d,
|
||||
*
|
||||
*-----------------------------------------------------------------------
|
||||
*/
|
||||
PIXMAN_EXPORT pixman_bool_t
|
||||
static PIXMAN_EXPORT pixman_bool_t
|
||||
PREFIX (_inverse) (region_type_t *new_reg, /* Destination region */
|
||||
region_type_t *reg1, /* Region to invert */
|
||||
box_type_t *inv_rect) /* Bounding box for inversion */
|
||||
@@ -2286,7 +2286,7 @@ find_box_for_y (box_type_t *begin, box_type_t *end, int y)
|
||||
* partially in the region) or is outside the region (we reached a band
|
||||
* that doesn't overlap the box at all and part_in is false)
|
||||
*/
|
||||
PIXMAN_EXPORT pixman_region_overlap_t
|
||||
static PIXMAN_EXPORT pixman_region_overlap_t
|
||||
PREFIX (_contains_rectangle) (region_type_t *region,
|
||||
box_type_t *prect)
|
||||
{
|
||||
@@ -2417,7 +2417,7 @@ PREFIX (_contains_rectangle) (region_type_t *region,
|
||||
* translates in place
|
||||
*/
|
||||
|
||||
PIXMAN_EXPORT void
|
||||
static PIXMAN_EXPORT void
|
||||
PREFIX (_translate) (region_type_t *region, int x, int y)
|
||||
{
|
||||
overflow_int_t x1, x2, y1, y2;
|
||||
@@ -2529,7 +2529,7 @@ PREFIX (_translate) (region_type_t *region, int x, int y)
|
||||
GOOD (region);
|
||||
}
|
||||
|
||||
PIXMAN_EXPORT void
|
||||
static PIXMAN_EXPORT void
|
||||
PREFIX (_reset) (region_type_t *region, box_type_t *box)
|
||||
{
|
||||
GOOD (region);
|
||||
@@ -2543,7 +2543,7 @@ PREFIX (_reset) (region_type_t *region, box_type_t *box)
|
||||
region->data = NULL;
|
||||
}
|
||||
|
||||
PIXMAN_EXPORT void
|
||||
static PIXMAN_EXPORT void
|
||||
PREFIX (_clear) (region_type_t *region)
|
||||
{
|
||||
GOOD (region);
|
||||
@@ -2554,7 +2554,7 @@ PREFIX (_clear) (region_type_t *region)
|
||||
}
|
||||
|
||||
/* box is "return" value */
|
||||
PIXMAN_EXPORT int
|
||||
static PIXMAN_EXPORT int
|
||||
PREFIX (_contains_point) (region_type_t *region,
|
||||
int x, int y,
|
||||
box_type_t *box)
|
||||
@@ -2631,7 +2631,7 @@ PREFIX (_extents) (region_type_t *region)
|
||||
* returns the number of new, clipped scanlines.
|
||||
*/
|
||||
|
||||
PIXMAN_EXPORT pixman_bool_t
|
||||
static PIXMAN_EXPORT pixman_bool_t
|
||||
PREFIX (_selfcheck) (region_type_t *reg)
|
||||
{
|
||||
int i, numRects;
|
||||
@@ -2696,7 +2696,7 @@ PREFIX (_selfcheck) (region_type_t *reg)
|
||||
}
|
||||
}
|
||||
|
||||
PIXMAN_EXPORT pixman_bool_t
|
||||
static PIXMAN_EXPORT pixman_bool_t
|
||||
PREFIX (_init_rects) (region_type_t *region,
|
||||
const box_type_t *boxes, int count)
|
||||
{
|
||||
|
||||
@@ -68,7 +68,7 @@ typedef signed int overflow_int_t;
|
||||
|
||||
#define critical_if_fail(expr)
|
||||
|
||||
int _pixman_log_error(const char *func, const char *format, ...)
|
||||
static int _pixman_log_error(const char *func, const char *format, ...)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
+1
-1
@@ -1525,7 +1525,7 @@ ssl_get_protocols_from_string(const char *str, long *ssl_protocols)
|
||||
|
||||
/*****************************************************************************/
|
||||
const char
|
||||
*get_openssl_version()
|
||||
*get_openssl_version(void)
|
||||
{
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
return SSLeay_version(SSLEAY_VERSION);
|
||||
|
||||
+1
-1
@@ -108,7 +108,7 @@ ssl_get_cipher_name(const struct ssl_tls *ssl);
|
||||
int
|
||||
ssl_get_protocols_from_string(const char *str, long *ssl_protocols);
|
||||
const char *
|
||||
get_openssl_version();
|
||||
get_openssl_version(void);
|
||||
tintptr
|
||||
ssl_get_rwo(const struct ssl_tls *ssl);
|
||||
|
||||
|
||||
+7
-7
@@ -38,7 +38,7 @@
|
||||
#define CONNECT_DELAY_ON_FAIL_MS 2000
|
||||
|
||||
/*****************************************************************************/
|
||||
int
|
||||
static int
|
||||
trans_tls_recv(struct trans *self, char *ptr, int len)
|
||||
{
|
||||
if (self->tls == NULL)
|
||||
@@ -49,7 +49,7 @@ trans_tls_recv(struct trans *self, char *ptr, int len)
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
int
|
||||
static int
|
||||
trans_tls_send(struct trans *self, const char *data, int len)
|
||||
{
|
||||
if (self->tls == NULL)
|
||||
@@ -60,7 +60,7 @@ trans_tls_send(struct trans *self, const char *data, int len)
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
int
|
||||
static int
|
||||
trans_tls_can_recv(struct trans *self, int sck, int millis)
|
||||
{
|
||||
if (self->tls == NULL)
|
||||
@@ -71,21 +71,21 @@ trans_tls_can_recv(struct trans *self, int sck, int millis)
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
int
|
||||
static int
|
||||
trans_tcp_recv(struct trans *self, char *ptr, int len)
|
||||
{
|
||||
return g_tcp_recv(self->sck, ptr, len, 0);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
int
|
||||
static int
|
||||
trans_tcp_send(struct trans *self, const char *data, int len)
|
||||
{
|
||||
return g_tcp_send(self->sck, data, len, 0);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
int
|
||||
static int
|
||||
trans_tcp_can_recv(struct trans *self, int sck, int millis)
|
||||
{
|
||||
return g_sck_can_recv(sck, millis);
|
||||
@@ -235,7 +235,7 @@ trans_get_wait_objs_rw(struct trans *self, tbus *robjs, int *rcount,
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
int
|
||||
static int
|
||||
trans_send_waiting(struct trans *self, int block)
|
||||
{
|
||||
struct stream *temp_s;
|
||||
|
||||
Reference in New Issue
Block a user