Module: kamailio
Branch: 4.3
Commit: 04f86d265a0d26f8dd25bf0ed353ee173b614204
URL:
https://github.com/kamailio/kamailio/commit/04f86d265a0d26f8dd25bf0ed353ee1…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2015-06-05T10:12:40+02:00
seas: fix gcc warnings:
statistics.h:76:20: warning: âdestroy_seas_stats_tableâ declared âstaticâ but
never defined [-Wunused-function]
statistics.h:82:19: warning: âprint_stats_infoâ declared âstaticâ but never
defined [-Wunused-function]
(cherry picked from commit 6d9abe14cf63e8c4683a8753ad6ae417f6f21ff0)
---
Modified: modules/seas/statistics.c
Modified: modules/seas/statistics.h
---
Diff:
https://github.com/kamailio/kamailio/commit/04f86d265a0d26f8dd25bf0ed353ee1…
Patch:
https://github.com/kamailio/kamailio/commit/04f86d265a0d26f8dd25bf0ed353ee1…
---
diff --git a/modules/seas/statistics.c b/modules/seas/statistics.c
index 4dcca47..ed62642 100644
--- a/modules/seas/statistics.c
+++ b/modules/seas/statistics.c
@@ -79,7 +79,7 @@ struct statstable* init_seas_stats_table(void)
return seas_stats_table;
}
-static inline void destroy_seas_stats_table(void)
+void destroy_seas_stats_table(void)
{
/*deallocs the table*/
if(seas_stats_table){
@@ -370,7 +370,7 @@ void serve_stats(int fd)
* this limit then the return value is the number of characters (not including the
trailing '\\0') which would have been written to the final string
* if enough space had been available. Thus, a return value of size or more means that
the output was truncated."
*/
-static inline int print_stats_info(int f,int sock)
+int print_stats_info(int f,int sock)
{
#define STATS_BUF_SIZE 400
int j,k,writen;
diff --git a/modules/seas/statistics.h b/modules/seas/statistics.h
index 0008a91..cf8e358 100644
--- a/modules/seas/statistics.h
+++ b/modules/seas/statistics.h
@@ -73,13 +73,13 @@ extern struct statstable *seas_stats_table;
*/
struct statstable* init_seas_stats_table(void);
int stop_stats_server(void);
-static inline void destroy_seas_stats_table(void);
+void destroy_seas_stats_table(void);
/** Statistics server process
* functions
*/
void serve_stats(int fd);
int start_stats_server(char *socket);
-static inline int print_stats_info(int f,int sock);
+int print_stats_info(int f,int sock);
/**
* Statistics functions
*/