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:
Mukund Sivaraman 2009-09-20 13:58:50 +05:30
parent 403fd7cc25
commit 919eedc7f9
5 changed files with 6 additions and 7 deletions

View File

@ -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

View File

@ -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)
{

View File

@ -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);

View File

@ -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;

View File

@ -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;