Created
May 15, 2015 15:33
-
-
Save anaselli/308c56f64acaa1a15280 to your computer and use it in GitHub Desktop.
Possible Linux::Systemd::Journal::Read::seek_tail patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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