summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a91a962)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
}
toread -= readlen;
if (!toread) {
}
toread -= readlen;
if (!toread) {
- ret = -EOF;
- break;
- }
- if (feof(in)) {
- ret = -EINVAL;
+ ret = 0; /* continue reading next packet */
for (;;) {
ret = ctf_open_trace_metadata_packet_read(td, in, out);
for (;;) {
ret = ctf_open_trace_metadata_packet_read(td, in, out);
- if (ret == -EOF) {
- ret = 0;
+ }
+ if (feof(in)) {
+ ret = 0;