Skip to content

Instantly share code, notes, and snippets.

@anaselli
Created May 15, 2015 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anaselli/308c56f64acaa1a15280 to your computer and use it in GitHub Desktop.
Save anaselli/308c56f64acaa1a15280 to your computer and use it in GitHub Desktop.
Possible Linux::Systemd::Journal::Read::seek_tail patch
diff --git a/lib/Linux/Systemd/Journal/Read.pm b/lib/Linux/Systemd/Journal/Read.pm
index c24bfbd..f799cb2 100644
--- a/lib/Linux/Systemd/Journal/Read.pm
+++ b/lib/Linux/Systemd/Journal/Read.pm
@@ -42,7 +42,7 @@ Seeks to the end of the open journal.
sub seek_tail {
my $self = shift;
- __seek_tail($self->_j);
+ __seek_tail();
return 1;
}
diff --git a/lib/Linux/Systemd/Journal/Read.xs b/lib/Linux/Systemd/Journal/Read.xs
index e871d67..72bbfa0 100644
--- a/lib/Linux/Systemd/Journal/Read.xs
+++ b/lib/Linux/Systemd/Journal/Read.xs
@@ -56,7 +56,7 @@ __seek_head()
croak("Failed to seek to journal head: %s\n", strerror(-r));
NO_OUTPUT void
-__seek_tail(sd_journal *j)
+__seek_tail()
CODE:
int r = sd_journal_seek_tail(j);
if (r < 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment