summaryrefslogtreecommitdiff
path: root/lib/distribute.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-10-05 21:01:23 +0000
committerhasso <hasso>2004-10-05 21:01:23 +0000
commit8c328f1106cf0498333c2d8a96940e7b4581e316 (patch)
tree9bf24cca6a68a9dd5d4dda586484e497d0c19ca6 /lib/distribute.c
parent98c91ac6ac085713c00af00a6ac41779be6b50b3 (diff)
Number of warnings is down to 3 again in lib directory. A lot of const's
added to strings and a lot of int -> unsigned int changes.
Diffstat (limited to 'lib/distribute.c')
-rw-r--r--lib/distribute.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/distribute.c b/lib/distribute.c
index 59dbc5a4..78de4bfb 100644
--- a/lib/distribute.c
+++ b/lib/distribute.c
@@ -119,8 +119,7 @@ distribute_get (char *ifname)
unsigned int
distribute_hash_make (struct distribute *dist)
{
- unsigned int key;
- int i;
+ unsigned int i, key;
key = 0;
if (dist->ifname)
@@ -625,7 +624,7 @@ ALIAS (no_districute_list_prefix, no_ipv6_distribute_list_prefix_cmd,
int
config_show_distribute (struct vty *vty)
{
- int i;
+ unsigned int i;
struct hash_backet *mp;
struct distribute *dist;
@@ -704,7 +703,7 @@ config_show_distribute (struct vty *vty)
int
config_write_distribute (struct vty *vty)
{
- int i;
+ unsigned int i;
struct hash_backet *mp;
int write = 0;