summaryrefslogtreecommitdiffstats
path: root/lib/libatm
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-07-29 13:51:27 +0000
committerharti <harti@FreeBSD.org>2003-07-29 13:51:27 +0000
commite28f3e210d38e6e81762cd4bc49f07aa2bee6828 (patch)
tree9236cc58d968b2b403cae3c2f80687b498e9f87a /lib/libatm
parente91f1da690d618251c2d00b8f625603de0d0cd48 (diff)
downloadFreeBSD-src-e28f3e210d38e6e81762cd4bc49f07aa2bee6828.zip
FreeBSD-src-e28f3e210d38e6e81762cd4bc49f07aa2bee6828.tar.gz
Make a local static string const.
Diffstat (limited to 'lib/libatm')
-rw-r--r--lib/libatm/atm_addr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libatm/atm_addr.c b/lib/libatm/atm_addr.c
index ed1becb..f4c65f2 100644
--- a/lib/libatm/atm_addr.c
+++ b/lib/libatm/atm_addr.c
@@ -219,7 +219,7 @@ char *
format_atm_addr(const Atm_addr *addr)
{
int i;
- char *nsap_format;
+ const char *nsap_format;
const Atm_addr_nsap *atm_nsap;
const Atm_addr_e164 *atm_e164;
const Atm_addr_spans *atm_spans;
@@ -230,9 +230,9 @@ format_atm_addr(const Atm_addr *addr)
char c[4];
} 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 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_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_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_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
OpenPOWER on IntegriCloud