X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Futils_ovs.c;h=6c90c5e45119cd5afa2f0811b8b84d1a57031fa7;hb=ee3387a7e491b9ad671fda500debc9637104dc96;hp=ff2b151eee5a28c67c05bf284237e57c3c7f27f6;hpb=6fb6d941d652cc50f60000dad452c1380d2f53a5;p=collectd.git diff --git a/src/utils_ovs.c b/src/utils_ovs.c index ff2b151e..6c90c5e4 100644 --- a/src/utils_ovs.c +++ b/src/utils_ovs.c @@ -328,7 +328,7 @@ static yajl_gen_status ovs_yajl_gen_val(yajl_gen jgen, yajl_val jval) { yajl_val jobj_value = NULL; const char *obj_key = NULL; size_t obj_len = 0; - yajl_gen_status yajl_gen_ret; + yajl_gen_status yajl_gen_ret = yajl_gen_status_ok; if (YAJL_IS_STRING(jval)) OVS_YAJL_CALL(ovs_yajl_gen_tstring, jgen, YAJL_GET_STRING(jval)); @@ -459,9 +459,6 @@ static int ovs_db_table_update_cb(ovs_db_t *pdb, yajl_val jnode) { yajl_val jvalue; yajl_val jparams; yajl_val jtable_updates; - yajl_val jtable_update; - size_t obj_len = 0; - const char *table_name = NULL; const char *params_path[] = {"params", NULL}; const char *id_path[] = {"id", NULL}; @@ -707,10 +704,8 @@ static void ovs_json_reader_free(ovs_json_reader_t *jreader) { * if connection has been established. */ static void ovs_db_reconnect(ovs_db_t *pdb) { - const char unix_prefix[] = "unix:"; const char *node_info = pdb->node; struct addrinfo *result; - struct sockaddr_un saunix; if (pdb->unix_path[0] != '\0') { /* use UNIX socket instead of INET address */