summaryrefslogtreecommitdiffstats
path: root/common/rop3.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-04-22 16:17:14 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:52 +0100
commit50fc5bc747b77a7624853bd05ef21ae966e05a2b (patch)
tree959a309a8f15c68ef7152720cc24a7dac9ac62e5 /common/rop3.c
parent29e175bb06bc8d9bf2cc2553d7b9715076db61ce (diff)
downloadspice-common-50fc5bc747b77a7624853bd05ef21ae966e05a2b.tar.gz
spice-common-50fc5bc747b77a7624853bd05ef21ae966e05a2b.tar.xz
spice-common-50fc5bc747b77a7624853bd05ef21ae966e05a2b.zip
common,server: use ASSERT from spice_common.h
spice_common.h provides an ASSERT macro, no need to duplicate it in many places. For now client/debug.h keeps its own copy since debug.h and spice_common.h have clashes on other macros which are trickier to unify.
Diffstat (limited to 'common/rop3.c')
-rw-r--r--common/rop3.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/common/rop3.c b/common/rop3.c
index 53e8a6d..1ce2cd2 100644
--- a/common/rop3.c
+++ b/common/rop3.c
@@ -22,13 +22,7 @@
#include <stdio.h>
#include "rop3.h"
-
-#ifndef ASSERT
-#define ASSERT(x) if (!(x)) { \
- printf("%s: ASSERT %s failed\n", __FUNCTION__, #x); \
- abort(); \
-}
-#endif
+#include "spice_common.h"
#ifndef WARN
#define WARN(x) printf("warning: %s\n", x)