]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2003-10-13 Jay Fenlason <fenlason@redhat.com>
authorpaul <paul>
Mon, 13 Oct 2003 09:49:29 +0000 (09:49 +0000)
committerpaul <paul>
Mon, 13 Oct 2003 09:49:29 +0000 (09:49 +0000)
* ospf6d/ospf6_route.c: Fix 2 compile warnings.

ospf6d/ospf6_route.c

index c35efa6e78669d906c8a304b45f138091485134b..b3abedc3c52cc95f33d471b0cb64f3d081c230b6 100644 (file)
@@ -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;
               }