Make a local static string const.
This commit is contained in:
parent
f345f5e020
commit
37bbd3cf39
@ -219,7 +219,7 @@ char *
|
|||||||
format_atm_addr(const Atm_addr *addr)
|
format_atm_addr(const Atm_addr *addr)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
char *nsap_format;
|
const char *nsap_format;
|
||||||
const Atm_addr_nsap *atm_nsap;
|
const Atm_addr_nsap *atm_nsap;
|
||||||
const Atm_addr_e164 *atm_e164;
|
const Atm_addr_e164 *atm_e164;
|
||||||
const Atm_addr_spans *atm_spans;
|
const Atm_addr_spans *atm_spans;
|
||||||
@ -230,9 +230,9 @@ format_atm_addr(const Atm_addr *addr)
|
|||||||
char c[4];
|
char c[4];
|
||||||
} u1, u2;
|
} u1, u2;
|
||||||
|
|
||||||
static char nsap_format_DCC[] = "0x%02x.%02x%02x.%02x.%02x%02x%02x.%02x%02x.%02x%02x.%02x%02x.%02x%02x%02x%02x%02x%02x.%02x";
|
static const char nsap_format_DCC[] = "0x%02x.%02x%02x.%02x.%02x%02x%02x.%02x%02x.%02x%02x.%02x%02x.%02x%02x%02x%02x%02x%02x.%02x";
|
||||||
static char nsap_format_ICD[] = "0x%02x.%02x%02x.%02x.%02x%02x%02x.%02x%02x.%02x%02x.%02x%02x.%02x%02x%02x%02x%02x%02x.%02x";
|
static const char nsap_format_ICD[] = "0x%02x.%02x%02x.%02x.%02x%02x%02x.%02x%02x.%02x%02x.%02x%02x.%02x%02x%02x%02x%02x%02x.%02x";
|
||||||
static char nsap_format_E164[] = "0x%02x.%02x%02x%02x%02x%02x%02x%02x%02x.%02x%02x.%02x%02x.%02x%02x%02x%02x%02x%02x.%02x";
|
static const char nsap_format_E164[] = "0x%02x.%02x%02x%02x%02x%02x%02x%02x%02x.%02x%02x.%02x%02x.%02x%02x%02x%02x%02x%02x.%02x";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Clear the returned string
|
* Clear the returned string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user