util.c   util.c 
skipping to change at line 89 skipping to change at line 89
fprintf(stderr, "usage %s: [--bpf,-b] [--pfc,-p]\n", argv[0] ); fprintf(stderr, "usage %s: [--bpf,-b] [--pfc,-p]\n", argv[0] );
rc = -EINVAL; rc = -EINVAL;
} }
return rc; return rc;
} }
/** /**
* Output the filter in either BPF or PFC * Output the filter in either BPF or PFC
* @param opts the options structure * @param opts the options structure
* @param ctx the filter context
* *
* This function outputs the seccomp filter to in either BPF or PFC format * This function outputs the seccomp filter to in either BPF or PFC format
* depending on the test paramaeters supplied by @opts. * depending on the test paramaeters supplied by @opts.
* *
*/ */
int util_filter_output(const struct util_options *opts) int util_filter_output(const struct util_options *opts,
const scmp_filter_ctx ctx)
{ {
int rc; int rc;
if (opts == NULL) if (opts == NULL)
return -EFAULT; return -EFAULT;
if (opts->bpf_flg) if (opts->bpf_flg)
rc = seccomp_export_bpf(STDOUT_FILENO); rc = seccomp_export_bpf(ctx, STDOUT_FILENO);
else else
rc = seccomp_export_pfc(STDOUT_FILENO); rc = seccomp_export_pfc(ctx, STDOUT_FILENO);
return rc; return rc;
} }
 End of changes. 4 change blocks. 
3 lines changed or deleted 5 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/