summaryrefslogtreecommitdiff
path: root/ospf6d
diff options
context:
space:
mode:
authorpaul <paul>2003-10-13 09:49:29 +0000
committerpaul <paul>2003-10-13 09:49:29 +0000
commitcccf8af8963e0f9cb862def616316288cabd0e47 (patch)
tree6ef0756a2a3b7f297953b04bf7776ce6913efe70 /ospf6d
parent3b424979f54c6b128d1ee8a7c33d072d321f2f0c (diff)
2003-10-13 Jay Fenlason <fenlason@redhat.com>
* ospf6d/ospf6_route.c: Fix 2 compile warnings.
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6_route.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c
index c35efa6e..b3abedc3 100644
--- a/ospf6d/ospf6_route.c
+++ b/ospf6d/ospf6_route.c
@@ -666,7 +666,10 @@ ospf6_route_remove (struct ospf6_route_req *request,
for (c = s; c < e; c++)
{
if ((c - s) % 4 == 0)
- snprintf (p++, line + sizeof (line) - p, " ");
+ {
+ snprintf (p, line + sizeof (line) - p, " ");
+ p++;
+ }
snprintf (p, line + sizeof (line) - p, "%02x", *c);
p += 2;
}
@@ -678,7 +681,10 @@ ospf6_route_remove (struct ospf6_route_req *request,
for (c = s; c < e; c++)
{
if ((c - s) % 4 == 0)
- snprintf (p++, line + sizeof (line) - p, " ");
+ {
+ snprintf (p, line + sizeof (line) - p, " ");
+ p++;
+ }
snprintf (p, line + sizeof (line) - p, "%02x", *c);
p += 2;
}