common: Remove spice_abort()

There are only 2 users in spice-common, and none in spice-gtk/spice

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
Christophe Fergeau 2018-07-03 12:42:34 +02:00 committed by Frediano Ziglio
parent 31d4622687
commit 8069bf498d
2 changed files with 2 additions and 4 deletions

View File

@ -937,7 +937,7 @@ pixman_format_code_t spice_surface_format_to_pixman(uint32_t surface_format)
return PIXMAN_a8r8g8b8;
default:
printf("Unknown surface format %d\n", surface_format);
spice_abort();
g_abort();
break;
}
return (pixman_format_code_t)0; /* Not reached */
@ -976,7 +976,7 @@ pixman_format_code_t spice_bitmap_format_to_pixman(int bitmap_format,
case SPICE_BITMAP_FMT_INVALID:
default:
printf("Unknown bitmap format %d\n", bitmap_format);
spice_abort();
g_abort();
return PIXMAN_a8r8g8b8;
}
}

View File

@ -28,6 +28,4 @@
#include "backtrace.h"
#include "log.h"
#define spice_abort() abort()
#endif