2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

lldp: Use x*alloc() functions instead of writing them out in-place.

Also use flexible array member instead of array of length 1 in
struct lldpd_frame.

Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Ben Pfaff
2015-03-03 15:30:46 -08:00
parent 22736f59c1
commit cc84196628
4 changed files with 15 additions and 48 deletions

View File

@@ -1,5 +1,6 @@
/* -*- mode: c; c-file-style: "openbsd" -*- */
/*
* Copyright (c) 2015 Nicira, Inc.
* Copyright (c) 2008 Vincent Bernat <bernat@luffy.cx>
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -149,7 +150,7 @@ struct lldpd_config {
struct lldpd_frame {
int size;
unsigned char frame[1];
unsigned char frame[];
};
struct lldpd_hardware;