Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#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 09/03/15 at 20:27:56 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 09/03/15 at 20:42:52 by Martin Galvan <martin.galvan@…>

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

In [changeset:"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 09/03/15 at 20:43:14 by Martin Galvan <martin.galvan@…>

In [changeset:"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.