Module: kamailio
Branch: master
Commit: a226823910735c315fc31df0e46132710db38def
URL:
https://github.com/kamailio/kamailio/commit/a226823910735c315fc31df0e461327…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-02-02T09:27:10+01:00
influxdbc: fix compile warnings
---
Modified: src/modules/influxdbc/ic.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a226823910735c315fc31df0e461327…
Patch:
https://github.com/kamailio/kamailio/commit/a226823910735c315fc31df0e461327…
---
diff --git a/src/modules/influxdbc/ic.c b/src/modules/influxdbc/ic.c
index 093eb5dd60b..09ab462ffcb 100644
--- a/src/modules/influxdbc/ic.c
+++ b/src/modules/influxdbc/ic.c
@@ -145,8 +145,6 @@ void ic_influx_userpw(char *user, char *pw)
int create_socket() /* returns 1 for error and 0 for ok */
{
- int i;
- static char buffer[4096];
static struct sockaddr_in serv_addr;
if(debug)
@@ -171,11 +169,11 @@ int create_socket() /* returns 1 for error and 0 for ok */
void ic_check(long adding) /* Check the buffer space */
{
- if(output == (char *)0) { /* First time create the buffer *
- if( (output = (char *)malloc(MEGABYTE)) == (char *)-1)
+ if(output == (char *)0) { /* First time create the buffer */
+ /* if( (output = (char *)malloc(MEGABYTE)) == (char *)-1)
error("failed to malloc() output buffer");
}
- if(output_char + (2*adding) > output_size) /* When near the end of the output
buffer, extend it*/
+ if(output_char + (2*adding) > output_size) */ /* When near the end of the output
buffer, extend it*/
if((output = (char *)realloc(output, output_size + MEGABYTE))
== (char *)-1)
error("failed to realloc() output buffer");
@@ -293,7 +291,6 @@ void ic_string(char *name, char *value)
void ic_push()
{
- char header[1024];
char result[1024];
char buffer[1024 * 8];
int ret;