mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 04:42:53 +00:00
lib: make igt_install_exit_handler never fail
Most callers didn't bother checking, so just move the asserts into the function itself. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
+1
-1
@@ -389,7 +389,7 @@ uint32_t drm_format_to_bpp(uint32_t drm_format);
|
||||
typedef void (*igt_exit_handler_t)(int sig);
|
||||
|
||||
/* reliable atexit helpers, also work when killed by a signal (if possible) */
|
||||
int igt_install_exit_handler(igt_exit_handler_t fn);
|
||||
void igt_install_exit_handler(igt_exit_handler_t fn);
|
||||
void igt_enable_exit_handler(void);
|
||||
void igt_disable_exit_handler(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user