Skip to content

Commit 995e00c

Browse files
authored
Merge pull request #254 from AndreiCherniaev/beta
combine anonymous structure definition with variable instantiation
2 parents 1951294 + 7f426d2 commit 995e00c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

IMSProg_programmer/ch34x_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
extern struct libusb_device_handle *handle;
4040
extern struct ch347_priv *priv;
4141

42-
struct xxx {
42+
struct {
4343
uint8_t ibuf[512];
4444
uint8_t obuf[512];
4545
} i2c_buf;

IMSProg_programmer/spi_nor_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
/* #define snor_dbg(args...) do { if (1) printf(args); } while(0) */
7878

7979

80-
struct xxx {
80+
struct {
8181
uint8_t ibuf[548];
8282
uint8_t obuf[548];
8383
} spi_buf;

0 commit comments

Comments
 (0)