/*
- * Copyright (c) 2008, 2009, 2010, 2012 Nicira, Inc.
+ * Copyright (c) 2008, 2009, 2010, 2012, 2013 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <config.h>
#include "stream-fd.h"
-#include <assert.h>
#include <errno.h>
#include <poll.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include "fatal-signal.h"
-#include "leak-checker.h"
#include "poll-loop.h"
#include "socket-util.h"
#include "stress.h"
char *unlink_path;
};
-static struct pstream_class fd_pstream_class;
+static const struct pstream_class fd_pstream_class;
static struct fd_pstream *
fd_pstream_cast(struct pstream *pstream)
if (new_fd < 0) {
retval = errno;
if (retval != EAGAIN) {
- VLOG_DBG_RL(&rl, "accept: %s", strerror(retval));
+ VLOG_DBG_RL(&rl, "accept: %s", ovs_strerror(retval));
}
return retval;
}
return 0;
}
-static struct pstream_class fd_pstream_class = {
+static const struct pstream_class fd_pstream_class = {
"pstream",
false,
NULL,