bbf: fix compiler warnings

This commit is contained in:
Amin Ben Ramdhane 2020-09-03 21:47:26 +01:00
parent 5bb35f740c
commit 99705ac5f9
5 changed files with 7 additions and 4 deletions

View file

@ -8,7 +8,6 @@
* Author: Yalu Zhang, yalu.zhang@iopsys.eu
*/
#include <stdio.h>
#include <libbbf_api/dmcommon.h>
#define ENABLE_TR104_DEBUG 0

View file

@ -17,7 +17,7 @@
static int browseServicesVoiceServiceCallLogInst(struct dmctx *dmctx, DMNODE *parent_node, void *prev_data, char *prev_instance)
{
struct call_log_entry *entry;
char inst[8];
char inst[16];
int i = 0;
init_call_log();

View file

@ -252,7 +252,7 @@ static int get_ServicesVoiceServiceCallControlLine_CallStatus(char *refparam, st
{
json_object *res = NULL;
int line_num = atoi(instance) - 1;
char line_str[8];
char line_str[16];
snprintf(line_str, sizeof(line_str), "%d", line_num);
dmubus_call("endpt", "status", UBUS_ARGS{{"line", line_str, Integer}}, 1, &res);

View file

@ -17,7 +17,7 @@
static int browseServicesVoiceServiceCapabilitiesCodecInst(struct dmctx *dmctx, DMNODE *parent_node, void *prev_data, char *prev_instance)
{
int i;
char inst[8];
char inst[16];
if (codecs_num <= 0)
init_supported_codecs();

View file

@ -13,6 +13,10 @@
#ifndef __DM_COMMON_H
#define __DM_COMMON_H
#ifndef __USE_XOPEN
#define __USE_XOPEN
#endif
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif