diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-01 23:07:45 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-15 22:34:40 -0400 |
commit | 4a0a6ac03864998c83918175609275df712a5a05 (patch) | |
tree | d55f99bd39bd72afbb6a9c1091e31bee8617ad1d /src/journal-remote/journal-remote-parse.h | |
parent | e9f3d2d508bfd9fb5b54e82994bda365a71eb864 (diff) |
Fix problem with allocating large buffers and log leftovers
Diffstat (limited to 'src/journal-remote/journal-remote-parse.h')
-rw-r--r-- | src/journal-remote/journal-remote-parse.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal-remote/journal-remote-parse.h b/src/journal-remote/journal-remote-parse.h index b02b5a6372..5b7f23650c 100644 --- a/src/journal-remote/journal-remote-parse.h +++ b/src/journal-remote/journal-remote-parse.h @@ -50,10 +50,10 @@ typedef struct RemoteSource { sd_event_source *event; } RemoteSource; -static inline int source_non_empty(RemoteSource *source) { +static inline size_t source_non_empty(RemoteSource *source) { assert(source); - return source->filled > 0; + return source->filled; } void source_free(RemoteSource *source); |