constify src param of ogs_fqdn_{build,parse}()

This commit is contained in:
Pau Espin 2023-12-13 14:46:12 +01:00 committed by Sukchan Lee
parent 3b6b8ebf4f
commit 8c01f3387d
2 changed files with 4 additions and 4 deletions

View File

@ -394,7 +394,7 @@ ogs_uint24_t ogs_s_nssai_sd_from_string(const char *hex)
return ogs_uint24_from_string((char *)hex);
}
int ogs_fqdn_build(char *dst, char *src, int length)
int ogs_fqdn_build(char *dst, const char *src, int length)
{
int i = 0, j = 0;
@ -411,7 +411,7 @@ int ogs_fqdn_build(char *dst, char *src, int length)
return length+1;
}
int ogs_fqdn_parse(char *dst, char *src, int length)
int ogs_fqdn_parse(char *dst, const char *src, int length)
{
int i = 0, j = 0;
uint8_t len = 0;

View File

@ -574,8 +574,8 @@ typedef struct ogs_session_s {
ogs_ip_t smf_ip;
} ogs_session_t;
int ogs_fqdn_build(char *dst, char *src, int len);
int ogs_fqdn_parse(char *dst, char *src, int len);
int ogs_fqdn_build(char *dst, const char *src, int len);
int ogs_fqdn_parse(char *dst, const char *src, int len);
/**************************************************
* Protocol Configuration Options Structure