#2410 closed defect (fixed)

rtems_dhcp.c fails to compile ("free" requires an extra argument)

Reported by: Martin Galvan Owned by: Martin Galvan <martin.galvan@…>
Priority: normal Milestone: 4.11.1
Component: unspecified Version: 4.11
Severity: major Keywords:
Cc: Blocked By:
Blocking:

Description

When trying to compile rtems_dhcp.c, compilation will fail with the following error:

../../../../../../trunk/c/src/../../cpukit/libnetworking/rtems/rtems_dhcp.c:408:32: error: macro "free" requires 2 arguments, but only 1 given

free (dhcp_hostname);

Change History (3)

comment:1 Changed on Sep 3, 2015 at 8:27:56 PM by Martin Galvan

Summary: rtems_dhcp.h fails to compile ("free" requires an extra argument)rtems_dhcp.c fails to compile ("free" requires an extra argument)

comment:2 Changed on Sep 3, 2015 at 8:42:52 PM by Martin Galvan <martin.galvan@…>

Owner: set to Martin Galvan <martin.galvan@…>
Resolution: fixed
Status: newclosed

In 28a870c47f66d946a6d94887120432be37441cdb/rtems:

cpukit/libnetworking/rtems/rtems_dhcp.c: Fix compilation error

Apparently 'free' is defined as a macro which takes two arguments and calls
rtems_bsdnet_free. When fixing #2405 I added a missing 'free' but didn't notice
it was non-standard.

Closes #2410.

comment:3 Changed on Sep 3, 2015 at 8:43:14 PM by Martin Galvan <martin.galvan@…>

In efb798e16ef9719b63e428e55eb039ffc79d11a0/rtems:

cpukit/libnetworking/rtems/rtems_dhcp.c: Fix compilation error

Apparently 'free' is defined as a macro which takes two arguments and calls
rtems_bsdnet_free. When fixing #2405 I added a missing 'free' but didn't notice
it was non-standard.

Closes #2410.

Note: See TracTickets for help on using tickets.