diff options
| author | hathach <[email protected]> | 2023-02-22 16:23:40 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-02-22 16:23:40 +0700 |
| commit | 498989ee009c388a770e7a312ae04d0a51ba745a (patch) | |
| tree | 192d7e73278bef02ae7d576e8ba52fff4cdd1069 /test/fuzz/device/net | |
| parent | 557bf82336311611ba3b06e57f48d03362f3d2c3 (diff) | |
use tu_static instead of static _fuzz_thread
Diffstat (limited to 'test/fuzz/device/net')
| -rw-r--r-- | test/fuzz/device/net/src/usb_descriptors.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fuzz/device/net/src/usb_descriptors.cc b/test/fuzz/device/net/src/usb_descriptors.cc index 903d49271..5597d49d5 100644 --- a/test/fuzz/device/net/src/usb_descriptors.cc +++ b/test/fuzz/device/net/src/usb_descriptors.cc @@ -45,7 +45,7 @@ // Invoked when received GET DEVICE DESCRIPTOR // Application return pointer to descriptor uint8_t const *tud_descriptor_device_cb(void) { - static _fuzz_thread tusb_desc_device_t const desc_device = { + tu_static tusb_desc_device_t const desc_device = { .bLength = sizeof(tusb_desc_device_t), .bDescriptorType = TUSB_DESC_DEVICE, .bcdUSB = USB_BCD, @@ -189,7 +189,7 @@ char const *string_desc_arr[] = { "TinyUSB CDC", // 4: CDC Interface }; -static _fuzz_thread uint16_t _desc_str[32]; +tu_static uint16_t _desc_str[32]; // Invoked when received GET STRING DESCRIPTOR request // Application return pointer to descriptor, whose contents must exist long |
