forked from acouzens/open5gs
lib/proto: Constify params of ogs_id_get_{type,value}()
This commit is contained in:
parent
5061a3aec0
commit
9349743295
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue