mirror of
https://github.com/openvswitch/ovs
synced 2025-09-05 00:35:33 +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:
@@ -16,7 +16,6 @@
|
||||
|
||||
#include <config.h>
|
||||
#include "daemon.h"
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
@@ -158,7 +157,9 @@ daemon_set_monitor(void)
|
||||
void
|
||||
daemon_save_fd(int fd)
|
||||
{
|
||||
assert(fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO);
|
||||
ovs_assert(fd == STDIN_FILENO ||
|
||||
fd == STDOUT_FILENO ||
|
||||
fd == STDERR_FILENO);
|
||||
save_fds[fd] = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user