diff options
author | hasso <hasso> | 2004-10-08 08:32:23 +0200 |
---|---|---|
committer | hasso <hasso> | 2004-10-08 08:32:23 +0200 |
commit | 7a1d583c02253c53605f310d1afcc9f1c8e15b7b (patch) | |
tree | 38652398c60620d195bb6b74f97ad4770af559e5 /ripngd/ripngd.c | |
parent | More const strings. (diff) | |
download | frr-7a1d583c02253c53605f310d1afcc9f1c8e15b7b.tar.xz frr-7a1d583c02253c53605f310d1afcc9f1c8e15b7b.zip |
Only warning left is the known lvalue problem in ripng_nexthop.c.
Diffstat (limited to 'ripngd/ripngd.c')
-rw-r--r-- | ripngd/ripngd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c index 4d7c0216e..a7254bc14 100644 --- a/ripngd/ripngd.c +++ b/ripngd/ripngd.c @@ -296,11 +296,11 @@ ripng_recv_packet (int sock, u_char *buf, int bufsize, /* Dump rip packet */ void -ripng_packet_dump (struct ripng_packet *packet, int size, char *sndrcv) +ripng_packet_dump (struct ripng_packet *packet, int size, const char *sndrcv) { caddr_t lim; struct rte *rte; - char *command_str; + const char *command_str; /* Set command string. */ if (packet->command == RIPNG_REQUEST) @@ -1935,12 +1935,13 @@ ripng_event (enum ripng_event event, int sock) } } -/* Each route type's strings and default preference. */ +/* Each route type's strings and default preference. + * FIXME: ISIS? What are these distance values? */ struct { int key; - char *str; - char *str_long; + const char *str; + const char *str_long; int distance; } route_info[] = { |