Skip to content

Commit

Permalink
aaa_diameter: Fix compile errors w/ gcc 9.x
Browse files Browse the repository at this point in the history
* missing function param names
* labels may not point to declarations
  • Loading branch information
liviuchircu committed Dec 18, 2023
1 parent 26a9e3a commit d836f4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/aaa_diameter/aaa_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1903,7 +1903,7 @@ static struct dict_avp_enc_f *dm_enc_get(int code, int vendor)
return a?enc_type2func(a->enc):NULL;
}

static int dict_avp_enc_ip(cJSON *obj, struct dict_avp_data *avp, int, str *ret)
static int dict_avp_enc_ip(cJSON *obj, struct dict_avp_data *avp, int _, str *ret)
{
int af;
unsigned char buf[sizeof(struct in6_addr)];
Expand Down Expand Up @@ -1946,7 +1946,7 @@ static cJSON *dict_avp_dec_ip(struct avp_hdr * h, struct dict_avp_data *avp)
return cJSON_CreateString(buf);;
}

static int dict_avp_enc_hex(cJSON *obj, struct dict_avp_data *avp, int, str *ret)
static int dict_avp_enc_hex(cJSON *obj, struct dict_avp_data *avp, int _, str *ret)
{
int len, i;
char *buf, *val;
Expand Down
2 changes: 1 addition & 1 deletion modules/aaa_diameter/app_opensips/avps.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ int parse_attr_def(char *line, FILE *fp)
}
}

create_avp:
create_avp:;
struct dict_object *parent, *avp_ref, **pref;

if (enc_type != AVP_ENC_TYPE_NONE &&
Expand Down

0 comments on commit d836f4a

Please sign in to comment.