From 23492a017a2df510d054157ba314d1e6b1a43c3c Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 1 Feb 2016 16:32:12 +0100 Subject: trafgen: proto: Mark fields parameter to proto_header_fields_add as const It's not changed inside the function, so mark it as const. Also adjust the header guards. Signed-off-by: Tobias Klauser --- trafgen_proto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'trafgen_proto.c') diff --git a/trafgen_proto.c b/trafgen_proto.c index 5fcb5cc..3cbf34e 100644 --- a/trafgen_proto.c +++ b/trafgen_proto.c @@ -86,8 +86,8 @@ static void proto_fields_realloc(struct proto_hdr *hdr, size_t count) hdr->fields_count = count; } -void proto_header_fields_add(struct proto_hdr *hdr, struct proto_field *fields, - size_t count) +void proto_header_fields_add(struct proto_hdr *hdr, + const struct proto_field *fields, size_t count) { struct packet *pkt = current_packet(); struct proto_field *f; -- cgit v1.2.3-54-g00ecf