Module: kamailio
Branch: master
Commit: 2b39d70d19df60a9ad1fc05f8a9d623c46c8caa2
URL:
https://github.com/kamailio/kamailio/commit/2b39d70d19df60a9ad1fc05f8a9d623…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-12-08T10:32:03+01:00
jsonrpc-s: fixed compile warnings
- unused variable and static declaration of function
---
Modified: src/modules/jsonrpc-s/jsonrpc-s_mod.c
Modified: src/modules/jsonrpc-s/jsonrpcs_fifo.c
Modified: src/modules/jsonrpc-s/jsonrpcs_sock.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2b39d70d19df60a9ad1fc05f8a9d623…
Patch:
https://github.com/kamailio/kamailio/commit/2b39d70d19df60a9ad1fc05f8a9d623…
---
diff --git a/src/modules/jsonrpc-s/jsonrpc-s_mod.c
b/src/modules/jsonrpc-s/jsonrpc-s_mod.c
index 9446384..7e112ee 100644
--- a/src/modules/jsonrpc-s/jsonrpc-s_mod.c
+++ b/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);
diff --git a/src/modules/jsonrpc-s/jsonrpcs_fifo.c
b/src/modules/jsonrpc-s/jsonrpcs_fifo.c
index 87123a1..2e56913 100644
--- a/src/modules/jsonrpc-s/jsonrpcs_fifo.c
+++ b/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;
diff --git a/src/modules/jsonrpc-s/jsonrpcs_sock.c
b/src/modules/jsonrpc-s/jsonrpcs_sock.c
index e1c2640..e47806f 100644
--- a/src/modules/jsonrpc-s/jsonrpcs_sock.c
+++ b/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;