[Spice-devel] [spice-common v2 2/3] common: Remove spice_abort()
Christophe Fergeau
cfergeau at redhat.com
Tue Jul 3 10:42:34 UTC 2018
There are only 2 users in spice-common, and none in spice-gtk/spice
Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
---
common/pixman_utils.c | 4 ++--
common/spice_common.h | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/common/pixman_utils.c b/common/pixman_utils.c
index 81806c9..5d1c15c 100644
--- a/common/pixman_utils.c
+++ b/common/pixman_utils.c
@@ -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;
}
}
diff --git a/common/spice_common.h b/common/spice_common.h
index f9a7b3b..c7b6e8e 100644
--- a/common/spice_common.h
+++ b/common/spice_common.h
@@ -28,6 +28,4 @@
#include "backtrace.h"
#include "log.h"
-#define spice_abort() abort()
-
#endif
--
2.17.1
More information about the Spice-devel
mailing list