Change -EOF for EOF (it is worth -1), fix assertion
[babeltrace.git] / converter / babeltrace-lib.c
index 51011e1d2906de9e55440f4c101b4e8c5c3b2ac9..76df6edee2f8f1f85ba1cb70ec7bd4964bc7b278 100644 (file)
@@ -36,8 +36,8 @@ int convert_event(struct ctf_text_stream_pos *sout,
        int len_index;
        int ret;
 
-       if (sin->pos.offset == -EOF)
-               return -EOF;
+       if (sin->pos.offset == EOF)
+               return EOF;
 
        /* Hide event payload struct brackets */
        sout->depth = -1;
@@ -119,7 +119,7 @@ int convert_stream(struct ctf_text_stream_pos *sout,
        /* TODO: order events by timestamps across streams */
        for (;;) {
                ret = convert_event(sout, sin);
-               if (ret == -EOF)
+               if (ret == EOF)
                        break;
                else if (ret) {
                        fprintf(stdout, "[error] Printing event failed.\n");
This page took 0.023189 seconds and 4 git commands to generate.