summaryrefslogtreecommitdiff
path: root/ospfd/ospf_dump.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-10-08 08:17:22 +0000
committerhasso <hasso>2004-10-08 08:17:22 +0000
commiteb1ce6059a00f3f0dd92c965aa5982907b54c00d (patch)
treeebd6583ba2f2f9909c25653d0349662e08c26ecf /ospfd/ospf_dump.c
parent2e864cfa12724ec20e82f0a24e1be5929e3a0cef (diff)
Compiler warnings fixes round 1.
Diffstat (limited to 'ospfd/ospf_dump.c')
-rw-r--r--ospfd/ospf_dump.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ospfd/ospf_dump.c b/ospfd/ospf_dump.c
index 8b4e78ba..e34f3f62 100644
--- a/ospfd/ospf_dump.c
+++ b/ospfd/ospf_dump.c
@@ -149,7 +149,7 @@ unsigned long term_debug_ospf_nssa = 0;
#define OSPF_AREA_STRING_MAXLEN 16
-char *
+const char *
ospf_area_name_string (struct ospf_area *area)
{
static char buf[OSPF_AREA_STRING_MAXLEN] = "";
@@ -166,7 +166,7 @@ ospf_area_name_string (struct ospf_area *area)
}
#define OSPF_AREA_DESC_STRING_MAXLEN 23
-char *
+const char *
ospf_area_desc_string (struct ospf_area *area)
{
static char buf[OSPF_AREA_DESC_STRING_MAXLEN] = "";
@@ -195,7 +195,7 @@ ospf_area_desc_string (struct ospf_area *area)
}
#define OSPF_IF_STRING_MAXLEN 40
-char *
+const char *
ospf_if_name_string (struct ospf_interface *oi)
{
static char buf[OSPF_IF_STRING_MAXLEN] = "";
@@ -236,7 +236,7 @@ ospf_nbr_state_message (struct ospf_neighbor *nbr, char *buf, size_t size)
LOOKUP (ospf_ism_state_msg, state));
}
-char *
+const char *
ospf_timer_dump (struct thread *t, char *buf, size_t size)
{
struct timeval now;
@@ -326,7 +326,7 @@ ospf_dd_flags_dump (u_char flags, char *buf, size_t size)
void
ospf_lsa_header_dump (struct lsa_header *lsah)
{
- char *lsah_type = LOOKUP (ospf_lsa_type_msg, lsah->type);
+ const char *lsah_type = LOOKUP (ospf_lsa_type_msg, lsah->type);
zlog_info (" LSA Header");
zlog_info (" LS age %d", ntohs (lsah->ls_age));
@@ -1484,8 +1484,8 @@ config_write_debug (struct vty *vty)
int write = 0;
int i, r;
- char *type_str[] = {"hello", "dd", "ls-request", "ls-update", "ls-ack"};
- char *detail_str[] = {"", " send", " recv", "", " detail",
+ const char *type_str[] = {"hello", "dd", "ls-request", "ls-update", "ls-ack"};
+ const char *detail_str[] = {"", " send", " recv", "", " detail",
" send detail", " recv detail", " detail"};
/* debug ospf ism (status|events|timers). */