lib/proto: Constify params of ogs_id_get_{type,value}()

This commit is contained in:
Pau Espin 2023-12-19 17:59:28 +01:00 committed by Sukchan Lee
parent 5061a3aec0
commit 9349743295
2 changed files with 4 additions and 4 deletions

View File

@ -305,7 +305,7 @@ ogs_amf_id_t *ogs_amf_id_build(ogs_amf_id_t *amf_id,
return amf_id;
}
char *ogs_id_get_type(char *str)
char *ogs_id_get_type(const char *str)
{
char *token, *p, *tmp;
char *type = NULL;
@ -335,7 +335,7 @@ cleanup:
return type;
}
char *ogs_id_get_value(char *str)
char *ogs_id_get_value(const char *str)
{
char *token, *p, *tmp;
char *ueid = NULL;

View File

@ -273,8 +273,8 @@ ogs_amf_id_t *ogs_amf_id_build(ogs_amf_id_t *amf_id,
#define OGS_ID_SUPI_TYPE_IMSI "imsi"
#define OGS_ID_GPSI_TYPE_MSISDN "msisdn"
#define OGS_ID_SUPI_TYPE_IMEISV "imeisv"
char *ogs_id_get_type(char *str);
char *ogs_id_get_value(char *str);
char *ogs_id_get_type(const char *str);
char *ogs_id_get_value(const char *str);
/************************************
* TAI Structure */