Selaa lähdekoodia

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)
Victor Seva 10 vuotta sitten
vanhempi
commit
04f86d265a
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 2 2
      modules/seas/statistics.c
  2. 2 2
      modules/seas/statistics.h

+ 2 - 2
modules/seas/statistics.c

@@ -79,7 +79,7 @@ struct statstable* init_seas_stats_table(void)
    return seas_stats_table;
    return seas_stats_table;
 }
 }
 
 
-static inline void destroy_seas_stats_table(void)
+void destroy_seas_stats_table(void)
 {
 {
    /*deallocs the table*/
    /*deallocs the table*/
    if(seas_stats_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
  * 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."
  * 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
 #define STATS_BUF_SIZE  400
    int j,k,writen;
    int j,k,writen;

+ 2 - 2
modules/seas/statistics.h

@@ -73,13 +73,13 @@ extern struct statstable *seas_stats_table;
  */
  */
 struct statstable* init_seas_stats_table(void);
 struct statstable* init_seas_stats_table(void);
 int stop_stats_server(void);
 int stop_stats_server(void);
-static inline void destroy_seas_stats_table(void);
+void destroy_seas_stats_table(void);
 /** Statistics server process
 /** Statistics server process
  * functions
  * functions
  */
  */
 void serve_stats(int fd);
 void serve_stats(int fd);
 int start_stats_server(char *socket);
 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
  * Statistics functions
  */
  */