Răsfoiți Sursa

jsonrpc-s: fixed compile warnings

- unused variable and static declaration of function
Daniel-Constantin Mierla 8 ani în urmă
părinte
comite
2b39d70d19

+ 1 - 3
src/modules/jsonrpc-s/jsonrpc-s_mod.c

@@ -82,9 +82,6 @@ static void mod_destroy(void);
 static int jsonrpc_dispatch(sip_msg_t* msg, char* s1, char* s2);
 static int jsonrpc_exec(sip_msg_t* msg, char* cmd, char* s2);
 
-static int jsonrpc_init_fifo_file(void);
-static void jsonrpc_fifo_process(int rank);
-
 /* FIFO server parameters */
 extern char *jsonrpc_fifo;				/*!< FIFO file name */
 extern char *jsonrpc_fifo_reply_dir; 	/*!< dir where reply fifos are allowed */
@@ -94,6 +91,7 @@ extern int  jsonrpc_fifo_gid;				/*!< Fifo default Group ID */
 extern char *jsonrpc_fifo_gid_s;			/*!< Fifo default Group ID name */
 extern int  jsonrpc_fifo_mode; /* Default file mode rw-rw---- */
 /* fifo function prototypes */
+extern int jsonrpc_init_fifo_file(void);
 extern int jsonrpc_fifo_mod_init(void);
 extern int jsonrpc_fifo_child_init(int rank);
 extern int jsonrpc_fifo_destroy(void);

+ 1 - 1
src/modules/jsonrpc-s/jsonrpcs_fifo.c

@@ -50,7 +50,7 @@ int  jsonrpc_fifo_mode = S_IRUSR| S_IWUSR| S_IRGRP| S_IWGRP; /* Default file mod
 /* FIFO TRANSPORT */
 
 /*! \brief Initialize fifo transport */
-static int jsonrpc_init_fifo_file(void)
+int jsonrpc_init_fifo_file(void)
 {
 	int n;
 	struct stat filestat;

+ 0 - 1
src/modules/jsonrpc-s/jsonrpcs_sock.c

@@ -549,7 +549,6 @@ static int jsonrpc_dgram_send_data(int fd, char* buf, unsigned int len,
 void jsonrpc_dgram_server(int rx_sock, int tx_sock)
 {
 	int ret;
-	int len;
 	str scmd;
 	jsonrpc_plain_reply_t* jr = NULL;