mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
bbf: fix compiler warnings
This commit is contained in:
parent
5bb35f740c
commit
99705ac5f9
5 changed files with 7 additions and 4 deletions
|
|
@ -8,7 +8,6 @@
|
|||
* Author: Yalu Zhang, yalu.zhang@iopsys.eu
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <libbbf_api/dmcommon.h>
|
||||
|
||||
#define ENABLE_TR104_DEBUG 0
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue