Skip to content

Commit

Permalink
integration-with-c: Use bofObjectRunAsyncThread() instead of bofObjec…
Browse files Browse the repository at this point in the history
…tRun().
  • Loading branch information
michal-z committed May 16, 2024
1 parent 7402536 commit 9a28a59
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions examples/integration-with-c/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,8 @@ int main(int argc, char *argv[]) {
printf("Running BOF from command line C application...\n");

BofContext* bof_context = NULL;
if (bofObjectRunAsyncThread(
bof_handle,
NULL,
0,
NULL,
NULL,
&bof_context) < 0) return 1;
if (bof_context == NULL)
return 1;
if (bofObjectRunAsyncThread(bof_handle, NULL, 0, NULL, NULL, &bof_context) < 0) return 1;
if (bof_context == NULL) return 1;

bofContextWait(bof_context);

Expand Down

0 comments on commit 9a28a59

Please sign in to comment.