Skip to content
Snippets Groups Projects
Commit 04160369 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Can't put a flexible array member in a union... add another anonymous struct layer.

parent 9d19be4b
No related branches found
No related tags found
No related merge requests found
Pipeline #5686 failed
...@@ -69,8 +69,10 @@ typedef struct sftp_tx_pkt { ...@@ -69,8 +69,10 @@ typedef struct sftp_tx_pkt {
uint8_t type; uint8_t type;
uint8_t data[]; uint8_t data[];
}; };
struct {
uint8_t tdata[]; uint8_t tdata[];
}; };
};
} *sftp_tx_pkt_t; } *sftp_tx_pkt_t;
typedef struct sftp_rx_pkt { typedef struct sftp_rx_pkt {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment