ret = handle_seek_position(index, whence, viewer_stream, pos,
file_stream);
if (ret != 0) {
- ret = -1;
+ ret = -BT_PACKET_SEEK_ERROR;
goto end;
}
if (!lttng_live_should_quit()) {
fprintf(stderr, "[error] get_next_index failed\n");
}
- ret = -1;
+ ret = -BT_PACKET_SEEK_ERROR;
goto end;
}
printf_verbose("Index received : packet_size : %" PRIu64
pos->offset = EOF;
if (!lttng_live_should_quit()) {
fprintf(stderr, "[error] get_data_packet failed\n");
- ret = -1;
+ ret = -BT_PACKET_SEEK_ERROR;
} else {
ret = 0;
}