Skip to content

Commit

Permalink
Merge pull request coreos#419 from darxriggs/fix-return-types-wrapper…
Browse files Browse the repository at this point in the history
…-functions

journal: fix return types inside C wrapper functions
  • Loading branch information
bgilbert committed Jun 1, 2023
2 parents 5fcf415 + 8c9d6cf commit d843340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdjournal/journal.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ package sdjournal
// void
// my_sd_journal_close(void *f, sd_journal *j)
// {
// int (*sd_journal_close)(sd_journal *);
// void (*sd_journal_close)(sd_journal *);
//
// sd_journal_close = f;
// sd_journal_close(j);
Expand Down Expand Up @@ -104,7 +104,7 @@ package sdjournal
// void
// my_sd_journal_flush_matches(void *f, sd_journal *j)
// {
// int (*sd_journal_flush_matches)(sd_journal *);
// void (*sd_journal_flush_matches)(sd_journal *);
//
// sd_journal_flush_matches = f;
// sd_journal_flush_matches(j);
Expand Down

0 comments on commit d843340

Please sign in to comment.