]> git.puffer.fish Git - mirror/frr.git/commitdiff
protobuf: fix build
authorDavid Lamparter <equinox@opensourcerouting.org>
Fri, 28 Jul 2017 12:42:13 +0000 (14:42 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 31 Jul 2017 21:03:30 +0000 (23:03 +0200)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
fpm/fpm.proto
qpb/qpb.proto
qpb/qpb_allocator.c

index 318e80a92e8dbe420005be24f49d73b44ca4ad2a..4597c7f8ebdf78a7a7093b3412338fd1ce9319c7 100644 (file)
@@ -20,6 +20,8 @@
 // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 //
 
+syntax = "proto2";
+
 //
 // Protobuf definitions pertaining to the Forwarding Plane Manager component.
 //
index a1595a9abd1b65f26337943f519bb3dc52e1710d..c06debb954d08c9cde9daa622498dbf826eecc47 100644 (file)
@@ -20,6 +20,8 @@
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+syntax = "proto2";
+
 /*
  * Protobuf definitions pertaining to the Quagga/FRR Protobuf component.
  */
@@ -87,4 +89,4 @@ enum Protocol {
   ISIS = 8;
   BGP = 9;
   OTHER = 10;
-}
\ No newline at end of file
+}
index 8b0ee941a5a858c8bb1f8b9798035bfcfbb5dbf7..7e5ba5b0ce40fb9e56edfe8f521674d25d05b053 100644 (file)
@@ -42,8 +42,7 @@ static void _qpb_free(void *allocator_data, void *ptr)
        linear_allocator_free(allocator_data, ptr);
 }
 
-static ProtobufCAllocator allocator_template = {_qpb_alloc, _qpb_free, NULL,
-                                               8192, NULL};
+static ProtobufCAllocator allocator_template = {_qpb_alloc, _qpb_free, NULL};
 
 /*
  * qpb_allocator_init_linear