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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user