Use C99 flex array member instead of length-1 array
Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
659e7dc446
commit
8fea8d5673
3 changed files with 5 additions and 5 deletions
|
@ -59,7 +59,7 @@ struct crypto_header
|
|||
struct crypto_contents
|
||||
{
|
||||
uint32_t _length;
|
||||
unsigned char _data[1];
|
||||
unsigned char _data[];
|
||||
};
|
||||
|
||||
struct crypto_contents_ref
|
||||
|
@ -71,7 +71,7 @@ struct crypto_contents_ref
|
|||
struct receiver_specific_mac_seq
|
||||
{
|
||||
uint32_t _length;
|
||||
struct receiver_specific_mac _buffer[1];
|
||||
struct receiver_specific_mac _buffer[];
|
||||
};
|
||||
|
||||
struct crypto_footer
|
||||
|
@ -83,7 +83,7 @@ struct crypto_footer
|
|||
struct encrypted_data
|
||||
{
|
||||
uint32_t length;
|
||||
unsigned char data[1];
|
||||
unsigned char data[];
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -77,7 +77,7 @@ struct receiver_specific_mac
|
|||
struct encrypted_data
|
||||
{
|
||||
uint32_t length;
|
||||
unsigned char data[1];
|
||||
unsigned char data[];
|
||||
};
|
||||
|
||||
struct seq_number
|
||||
|
|
|
@ -83,7 +83,7 @@ struct receiver_specific_mac
|
|||
struct encrypted_data
|
||||
{
|
||||
uint32_t length;
|
||||
unsigned char data[1];
|
||||
unsigned char data[];
|
||||
};
|
||||
|
||||
static void reset_exception(DDS_Security_SecurityException *ex)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue