Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86d867f3 authored by Sharvil Nanavati's avatar Sharvil Nanavati Committed by Android Git Automerger
Browse files

am c2099c7d: Add a flexible array to the end of BT_HDR to avoid pointer arithmetic.

* commit 'c2099c7d':
  Add a flexible array to the end of BT_HDR to avoid pointer arithmetic.
parents de807554 c2099c7d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -111,6 +111,7 @@ typedef struct
    uint16_t          len;
    uint16_t          offset;
    uint16_t          layer_specific;
    uint8_t           data[];
} HC_BT_HDR;

#define BT_HC_HDR_SIZE (sizeof(HC_BT_HDR))
+5 −4
Original line number Diff line number Diff line
@@ -205,10 +205,11 @@
*/
typedef struct
{
    UINT16          event;
    UINT16          len;
    UINT16          offset;
    UINT16          layer_specific;
    uint16_t          event;
    uint16_t          len;
    uint16_t          offset;
    uint16_t          layer_specific;
    uint8_t           data[];
} BT_HDR;

#define BT_HDR_SIZE (sizeof (BT_HDR))