* SOFTWARE.
*/
-#define _GNU_SOURCE
-#include <config.h>
#include <babeltrace/babeltrace.h>
#include <babeltrace/format.h>
#include <babeltrace/context.h>
goto end;
}
errno = 0;
- opt_clock_offset = strtoull(str, &endptr, 0);
+ opt_clock_offset = strtoll(str, &endptr, 0);
if (*endptr != '\0' || str == endptr || errno != 0) {
fprintf(stderr, "[error] Incorrect --clock-offset argument: %s\n", str);
ret = -EINVAL;
goto end;
}
errno = 0;
- opt_clock_offset_ns = strtoull(str, &endptr, 0);
+ opt_clock_offset_ns = strtoll(str, &endptr, 0);
if (*endptr != '\0' || str == endptr || errno != 0) {
fprintf(stderr, "[error] Incorrect --clock-offset-ns argument: %s\n", str);
ret = -EINVAL;
if (ret < 0) {
fprintf(stderr, "[warning] [Context] cannot open trace \"%s\" "
"for reading.\n", path);
- /* Allow to skip erroneous traces. */
- ret = 1; /* partial error */
}
return ret;
}