Skip to content

Commit

Permalink
Merge pull request #129 from nasa/fix-128-rtems-string-literal
Browse files Browse the repository at this point in the history
Fix #128, Do not directly use a literal for char* members
  • Loading branch information
skliper authored Jan 21, 2020
2 parents ada9705 + 753a146 commit e0ec90f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions fsw/pc-rtems/src/cfe_psp_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,16 @@ rtems_driver_address_table rtems_ramdisk_io_ops =
rtems_id RtemsTimerId;

static unsigned char ethernet_address[6] = {0x00, 0x04, 0x9F, 0x00, 0x27, 0x61 };
static char net_name_str[] = "fxp1";
static char ip_addr_str[] = "10.0.2.17";
static char ip_netmask_str[] = "255.255.255.0";

static struct rtems_bsdnet_ifconfig netdriver_config = {
.name = "fxp1" /*RTEMS_BSP_NETWORK_DRIVER_NAME*/,
.attach = rtems_fxp_attach /*RTEMS_BSP_NETWORK_DRIVER_ATTACH*/,
.name = net_name_str,
.attach = rtems_fxp_attach,
.next = NULL,
.ip_address = "10.0.2.17",
.ip_netmask = "255.255.255.0",
.ip_address = ip_addr_str,
.ip_netmask = ip_netmask_str,
.hardware_address = ethernet_address
/* more options can follow */
};
Expand Down

0 comments on commit e0ec90f

Please sign in to comment.