mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: Drop GError usage from SysprofCaptureReader
Use `errno` instead, which is icky, but given that all of the failure modes are from POSIX I/O functions, it’s at least in keeping with them. This is a major API break. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #40
This commit is contained in:
@ -59,9 +59,9 @@ main (gint argc,
|
||||
}
|
||||
|
||||
if (g_strcmp0 ("-", argv[1]) == 0)
|
||||
reader = sysprof_capture_reader_new_from_fd (dup (STDIN_FILENO), 0);
|
||||
reader = sysprof_capture_reader_new_from_fd (dup (STDIN_FILENO));
|
||||
else
|
||||
reader = sysprof_capture_reader_new (argv[1], 0);
|
||||
reader = sysprof_capture_reader_new (argv[1]);
|
||||
|
||||
if (reader == NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user