mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-capture: Use assert() instead of g_assert()
Also use it instead of `g_return_if_fail()`. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #40
This commit is contained in:
@ -60,6 +60,7 @@
|
||||
# define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <glib-unix.h>
|
||||
#include <gio/gio.h>
|
||||
#include <gio/gunixconnection.h>
|
||||
@ -185,7 +186,7 @@ write_final_frame (MappedRingBuffer *ring)
|
||||
{
|
||||
SysprofCaptureFrame *fr;
|
||||
|
||||
g_assert (ring != NULL);
|
||||
assert (ring != NULL);
|
||||
|
||||
if ((fr = mapped_ring_buffer_allocate (ring, sizeof *fr)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user