diff options
author | paul <paul> | 2003-10-13 09:49:29 +0000 |
---|---|---|
committer | paul <paul> | 2003-10-13 09:49:29 +0000 |
commit | cccf8af8963e0f9cb862def616316288cabd0e47 (patch) | |
tree | 6ef0756a2a3b7f297953b04bf7776ce6913efe70 /ospf6d | |
parent | 3b424979f54c6b128d1ee8a7c33d072d321f2f0c (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.c | 10 |
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; } |