Skip to content

Commit

Permalink
protobuf: fix build
Browse files Browse the repository at this point in the history
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
  • Loading branch information
eqvinox committed Jul 31, 2017
1 parent 0f8b5fd commit a805d3b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions fpm/fpm.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
//

syntax = "proto2";

//
// Protobuf definitions pertaining to the Forwarding Plane Manager component.
//
Expand Down
4 changes: 3 additions & 1 deletion qpb/qpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

syntax = "proto2";

/*
* Protobuf definitions pertaining to the Quagga/FRR Protobuf component.
*/
Expand Down Expand Up @@ -87,4 +89,4 @@ enum Protocol {
ISIS = 8;
BGP = 9;
OTHER = 10;
}
}
3 changes: 1 addition & 2 deletions qpb/qpb_allocator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a805d3b

Please sign in to comment.