X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstream-fd.c;h=ad15dca7ec62cf4a9f40cb71823a2e661fbf324d;hb=9ea5d2d58ba8783271d096d417082a8372b87c5d;hp=46aa8e7386cf5cdd934a237a01c859cc3572c578;hpb=c34b65c731a1b6dae014efe8895141e5b2fe758a;p=openvswitch diff --git a/lib/stream-fd.c b/lib/stream-fd.c index 46aa8e73..ad15dca7 100644 --- a/lib/stream-fd.c +++ b/lib/stream-fd.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009 Nicira Networks. + * Copyright (c) 2008, 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include "fatal-signal.h" @@ -30,9 +31,9 @@ #include "util.h" #include "stream-provider.h" #include "stream.h" - #include "vlog.h" -#define THIS_MODULE VLM_stream_fd + +VLOG_DEFINE_THIS_MODULE(stream_fd); /* Active file descriptor stream. */ @@ -139,6 +140,8 @@ static struct stream_class stream_fd_class = { fd_connect, /* connect */ fd_recv, /* recv */ fd_send, /* send */ + NULL, /* run */ + NULL, /* run_wait */ fd_wait, /* wait */ }; @@ -211,7 +214,7 @@ pfd_accept(struct pstream *pstream, struct stream **new_streamp) new_fd = accept(ps->fd, (struct sockaddr *) &ss, &ss_len); if (new_fd < 0) { - int retval = errno; + retval = errno; if (retval != EAGAIN) { VLOG_DBG_RL(&rl, "accept: %s", strerror(retval)); }