[i-c] Get rid of inline warnings

GCC was complaining about functions "declared inline after being
called". This commit suppresses all inline declarations (-O2 inlines
automatically small functions anyway).
This commit is contained in:
Matteo Cypriani 2010-10-25 15:04:57 +02:00
parent c31d753e00
commit cc83d36336
2 changed files with 8 additions and 8 deletions

View File

@ -734,7 +734,7 @@ ap_list* find_ap(unsigned char mac_addr_bytes[6])
/*
* Adds a new AP in front of the AP list.
*/
inline ap_list* add_ap_front(unsigned char mac_addr_bytes[6])
ap_list* add_ap_front(unsigned char mac_addr_bytes[6])
{
ap_list *ap = malloc(sizeof(ap_list)) ;
memcpy(ap->mac_addr_bytes, mac_addr_bytes, 6) ;
@ -748,7 +748,7 @@ inline ap_list* add_ap_front(unsigned char mac_addr_bytes[6])
/*
* Change the IP address of the AP 'ap' with 'ip_addr'.
*/
inline void update_ap_ip_addr(ap_list *ap, char ip_addr[16])
void update_ap_ip_addr(ap_list *ap, char ip_addr[16])
{
strncpy(ap->ip_addr, ip_addr, 16) ;
}
@ -757,7 +757,7 @@ inline void update_ap_ip_addr(ap_list *ap, char ip_addr[16])
/*
* Updates the timestamp of the given AP.
*/
inline void update_ap_seen(ap_list *ap)
void update_ap_seen(ap_list *ap)
{
assert(ap) ;
gettimeofday(&ap->last_seen, NULL) ;
@ -768,7 +768,7 @@ inline void update_ap_seen(ap_list *ap)
* Puts an existing AP in front of the AP list. The AP must not be in
* the list yet.
*/
inline void push_ap(ap_list *ap)
void push_ap(ap_list *ap)
{
assert(ap) ;
ap->previous = NULL ;
@ -819,7 +819,7 @@ void delete_old_aps()
/*
* Deletes the given AP from the AP list.
*/
inline void delete_ap(ap_list *ap)
void delete_ap(ap_list *ap)
{
unlink_ap(ap) ;
free(ap) ;
@ -874,7 +874,7 @@ void order_send(ap_list *ap)
/*
* Moves the given AP, existing in the AP list, in front of the list.
*/
inline void move_ap_front(ap_list *ap)
void move_ap_front(ap_list *ap)
{
unlink_ap(ap) ;
push_ap(ap) ;

View File

@ -271,7 +271,7 @@ void print_configuration()
inline void create_socket()
void create_socket()
{
sockfd =
owlps_create_socket_to_aggregator(options.dest_ip, options.dest_port,
@ -324,7 +324,7 @@ void make_packet()
inline void send_request()
void send_request()
{
owlps_send_request(sockfd, &server, packet, packet_size,
options.nb_pkt, options.delay) ;