mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
Replace most uses of assert by ovs_assert.
This is a straight search-and-replace, except that I also removed #include <assert.h> from each file where there were no assert calls left. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
#include <config.h>
|
||||
#include "fatal-signal.h"
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
#include <stdbool.h>
|
||||
@@ -112,7 +111,7 @@ fatal_signal_add_hook(void (*hook_cb)(void *aux), void (*cancel_cb)(void *aux),
|
||||
{
|
||||
fatal_signal_init();
|
||||
|
||||
assert(n_hooks < MAX_HOOKS);
|
||||
ovs_assert(n_hooks < MAX_HOOKS);
|
||||
hooks[n_hooks].hook_cb = hook_cb;
|
||||
hooks[n_hooks].cancel_cb = cancel_cb;
|
||||
hooks[n_hooks].aux = aux;
|
||||
|
Reference in New Issue
Block a user