]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Correct asserts
authorMatthew Barr <matthew.barr@intel.com>
Sun, 28 Feb 2016 21:25:02 +0000 (08:25 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Tue, 1 Mar 2016 00:36:22 +0000 (11:36 +1100)
src/nfa/nfa_internal.h

index e13482b5f66dd302c66bce61c04f6c543581eec7..089e96838b697a276b9b5c5c4f11ef323bf590f8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Intel Corporation
+ * Copyright (c) 2015-2016, Intel Corporation
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -245,14 +245,14 @@ int isMultiTopType(u8 t) {
 /* Use for functions that return an integer. */
 #define NFA_API_NO_IMPL(...)                                                   \
     ({                                                                         \
-        assert("not implemented for this engine!");                            \
+        assert(!"not implemented for this engine!");                            \
         0; /* return value, for places that need it */                         \
     })
 
 /* Use for _zombie_status functions. */
 #define NFA_API_ZOMBIE_NO_IMPL(...)                                            \
     ({                                                                         \
-        assert("not implemented for this engine!");                            \
+        assert(!"not implemented for this engine!");                            \
         NFA_ZOMBIE_NO;                                                         \
     })