2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 22:35:15 +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:
Ben Pfaff
2012-11-06 13:14:55 -08:00
parent 4749f73d12
commit cb22974d77
85 changed files with 393 additions and 545 deletions

View File

@@ -16,7 +16,6 @@
#include <config.h>
#include "process.h"
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
@@ -159,7 +158,7 @@ process_register(const char *name, pid_t pid)
struct process *p;
const char *slash;
assert(sigchld_is_blocked());
ovs_assert(sigchld_is_blocked());
p = xzalloc(sizeof *p);
p->pid = pid;
@@ -308,7 +307,7 @@ process_exited(struct process *p)
int
process_status(const struct process *p)
{
assert(p->exited);
ovs_assert(p->exited);
return p->status;
}