git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace most uses of assert by ovs_assert.
[sliver-openvswitch.git]
/
lib
/
unixctl.c
diff --git
a/lib/unixctl.c
b/lib/unixctl.c
index
8686de3
..
e59056e
100644
(file)
--- a/
lib/unixctl.c
+++ b/
lib/unixctl.c
@@
-16,7
+16,6
@@
#include <config.h>
#include "unixctl.h"
#include <config.h>
#include "unixctl.h"
-#include <assert.h>
#include <errno.h>
#include <unistd.h>
#include "coverage.h"
#include <errno.h>
#include <unistd.h>
#include "coverage.h"
@@
-110,7
+109,7
@@
unixctl_command_register(const char *name, const char *usage,
struct unixctl_command *command;
struct unixctl_command *lookup = shash_find_data(&commands, name);
struct unixctl_command *command;
struct unixctl_command *lookup = shash_find_data(&commands, name);
- assert(!lookup || lookup->cb == cb);
+
ovs_
assert(!lookup || lookup->cb == cb);
if (lookup) {
return;
if (lookup) {
return;
@@
-133,7
+132,7
@@
unixctl_command_reply__(struct unixctl_conn *conn,
struct jsonrpc_msg *reply;
COVERAGE_INC(unixctl_replied);
struct jsonrpc_msg *reply;
COVERAGE_INC(unixctl_replied);
- assert(conn->request_id);
+
ovs_
assert(conn->request_id);
if (!body) {
body = "";
if (!body) {
body = "";