Remove inline keyword from static functions
The compiler inlines static functions as necessary anyway. No more inline keywords exist in Tinyproxy source code. We want to avoid using this keyword anyway.
This commit is contained in:
parent
403fd7cc25
commit
919eedc7f9
@ -175,7 +175,6 @@ esac
|
||||
dnl
|
||||
dnl Checks for types
|
||||
dnl
|
||||
AC_C_INLINE
|
||||
AC_TYPE_SIZE_T
|
||||
AC_TYPE_PID_T
|
||||
AC_TYPE_SIGNAL
|
||||
|
@ -68,7 +68,7 @@ static vector_t access_list = NULL;
|
||||
* -1 on failure (invalid mask value)
|
||||
*
|
||||
*/
|
||||
inline static int
|
||||
static int
|
||||
fill_netmask_array (char *bitmask_string, unsigned char array[],
|
||||
unsigned int len)
|
||||
{
|
||||
|
@ -362,7 +362,7 @@ set_bool_arg (unsigned int *var, const char *line, regmatch_t * match)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline unsigned long int
|
||||
static unsigned long int
|
||||
get_int_arg (const char *line, regmatch_t * match)
|
||||
{
|
||||
assert (line);
|
||||
|
@ -126,7 +126,7 @@ hashmap_t hashmap_create (unsigned int nbuckets)
|
||||
* Returns: 0 if the function completed successfully
|
||||
* negative number is returned if "entry" was NULL
|
||||
*/
|
||||
static inline int delete_hashbucket (struct hashbucket_s *bucket)
|
||||
static int delete_hashbucket (struct hashbucket_s *bucket)
|
||||
{
|
||||
struct hashentry_s *nextptr;
|
||||
struct hashentry_s *ptr;
|
||||
|
@ -494,7 +494,7 @@ establish_http_connection (struct conn_s *connptr, struct request_s *request)
|
||||
* Send the appropriate response to the client to establish a SSL
|
||||
* connection.
|
||||
*/
|
||||
static inline int send_ssl_response (struct conn_s *connptr)
|
||||
static int send_ssl_response (struct conn_s *connptr)
|
||||
{
|
||||
return write_message (connptr->client_fd,
|
||||
"%s\r\n"
|
||||
@ -783,7 +783,7 @@ ERROR_EXIT:
|
||||
* the server.
|
||||
* -rjkaes
|
||||
*/
|
||||
static inline int add_xtinyproxy_header (struct conn_s *connptr)
|
||||
static int add_xtinyproxy_header (struct conn_s *connptr)
|
||||
{
|
||||
assert (connptr && connptr->server_fd >= 0);
|
||||
return write_message (connptr->server_fd,
|
||||
@ -796,7 +796,7 @@ static inline int add_xtinyproxy_header (struct conn_s *connptr)
|
||||
* Now insert this information into the hashmap for the connection so it
|
||||
* can be retrieved and manipulated later.
|
||||
*/
|
||||
static inline int
|
||||
static int
|
||||
add_header_to_connection (hashmap_t hashofheaders, char *header, size_t len)
|
||||
{
|
||||
char *sep;
|
||||
|
Loading…
Reference in New Issue
Block a user