summaryrefslogtreecommitdiffstats
path: root/freebsd/contrib/pf/pfctl/pfctl.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-10-13 07:21:48 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-10-13 07:23:03 +0200
commit40f202da4e2ddb70bdc2d93c7535f9bf22ea070b (patch)
treef964364a42b16ad5ea59106d271cae826477a54a /freebsd/contrib/pf/pfctl/pfctl.c
parentnexus-devices: Support arm/lpc24xx (diff)
downloadrtems-libbsd-40f202da4e2ddb70bdc2d93c7535f9bf22ea070b.tar.bz2
pfctl: Update due to linker set API changes
Diffstat (limited to 'freebsd/contrib/pf/pfctl/pfctl.c')
-rw-r--r--freebsd/contrib/pf/pfctl/pfctl.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/freebsd/contrib/pf/pfctl/pfctl.c b/freebsd/contrib/pf/pfctl/pfctl.c
index 8dc289e2..26b455ce 100644
--- a/freebsd/contrib/pf/pfctl/pfctl.c
+++ b/freebsd/contrib/pf/pfctl/pfctl.c
@@ -2096,13 +2096,16 @@ RTEMS_LINKER_RWSET(bsd_prog_pfctl, char);
int
rtems_bsd_command_pfctl(int argc, char *argv[])
{
- int exit_code = EXIT_FAILURE;
- const void *data_buf = RTEMS_LINKER_SET_BEGIN(bsd_prog_pfctl);
- const size_t data_size = RTEMS_LINKER_SET_SIZE(bsd_prog_pfctl);
+ int exit_code;
+ const void *data_begin;
+ size_t data_size;
+
+ RTEMS_LINKER_SET_ASSIGN_BEGIN(bsd_prog_pfctl, data_begin);
+ data_size = RTEMS_LINKER_SET_SIZE(bsd_prog_pfctl);
rtems_bsd_program_lock();
exit_code = rtems_bsd_program_call_main_with_data_restore("pfctl",
- main, argc, argv, data_buf, data_size);
+ main, argc, argv, data_begin, data_size);
rtems_bsd_program_unlock();
return exit_code;