pfctl: Update due to linker set API changes

This commit is contained in:
Sebastian Huber 2016-10-13 07:21:48 +02:00
parent f5f9e16e4a
commit 40f202da4e

View File

@ -2096,13 +2096,16 @@ RTEMS_LINKER_RWSET(bsd_prog_pfctl, char);
int int
rtems_bsd_command_pfctl(int argc, char *argv[]) rtems_bsd_command_pfctl(int argc, char *argv[])
{ {
int exit_code = EXIT_FAILURE; int exit_code;
const void *data_buf = RTEMS_LINKER_SET_BEGIN(bsd_prog_pfctl); const void *data_begin;
const size_t data_size = RTEMS_LINKER_SET_SIZE(bsd_prog_pfctl); 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(); rtems_bsd_program_lock();
exit_code = rtems_bsd_program_call_main_with_data_restore("pfctl", 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(); rtems_bsd_program_unlock();
return exit_code; return exit_code;