Skip to content

Commit 4c9e60f

Browse files
committed
hostmot2 - board_name: Explicitly indicate __atribute__(nonstring)
1 parent 772d5b8 commit 4c9e60f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hal/drivers/mesa-hostmot2/hostmot2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ typedef struct {
145145
rtapi_u32 idrom_type;
146146
rtapi_u32 offset_to_modules;
147147
rtapi_u32 offset_to_pin_desc;
148-
rtapi_u8 board_name[8]; // ascii string, but not NULL terminated!
148+
rtapi_u8 board_name[8] __attribute__ ((nonstring)); // ASCII string, but not NULL terminated!
149149
rtapi_u32 fpga_size;
150150
rtapi_u32 fpga_pins;
151151
rtapi_u32 io_ports;

src/hal/drivers/mesa-hostmot2/llio_info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "llio_info.h"
2727

2828
typedef struct __info_entry_t {
29-
char board_name[8];
29+
char board_name[8] __attribute__ ((nonstring));
3030
const char *base_name;
3131
int num_ioport_connectors;
3232
int pins_per_connector;

0 commit comments

Comments
 (0)