X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fstream.c;h=eb75be8d74428f59f83a1642e5dde17f8f832382;hb=76ecc721793b29c8bae44b10a065ec9ac07a9e4b;hp=4d894e7ede743e1640854a83d14589aae97a9eeb;hpb=5136ce492c414f377f7be9ae32b259abb9f76580;p=openvswitch diff --git a/lib/stream.c b/lib/stream.c index 4d894e7e..eb75be8d 100644 --- a/lib/stream.c +++ b/lib/stream.c @@ -37,7 +37,7 @@ #include "util.h" #include "vlog.h" -VLOG_DEFINE_THIS_MODULE(stream) +VLOG_DEFINE_THIS_MODULE(stream); /* State of an active stream.*/ enum stream_state { @@ -323,10 +323,10 @@ scs_connecting(struct stream *stream) } } -/* Tries to complete the connection on 'stream', which must be an active - * stream. If 'stream''s connection is complete, returns 0 if the connection - * was successful or a positive errno value if it failed. If the - * connection is still in progress, returns EAGAIN. */ +/* Tries to complete the connection on 'stream'. If 'stream''s connection is + * complete, returns 0 if the connection was successful or a positive errno + * value if it failed. If the connection is still in progress, returns + * EAGAIN. */ int stream_connect(struct stream *stream) { @@ -769,7 +769,7 @@ stream_content_type_to_string(enum stream_content_type type) void stream_report_content(const void *data, size_t size, enum stream_content_type expected_type, - enum vlog_module module, const char *stream_name) + struct vlog_module *module, const char *stream_name) { static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(5, 5); enum stream_content_type actual_type;