X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fstream-unix.c;h=d7dde8fc44f1e3c819c4d3eb6aab147fa08e90cb;hb=05e547e7ee479fa2c3ca5bc9d2eb57bc8a07bdb8;hp=20aa5b482876c373f7a7386be4f810ee7e683ce8;hpb=5136ce492c414f377f7be9ae32b259abb9f76580;p=sliver-openvswitch.git diff --git a/lib/stream-unix.c b/lib/stream-unix.c index 20aa5b482..d7dde8fc4 100644 --- a/lib/stream-unix.c +++ b/lib/stream-unix.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010 Nicira Networks. + * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ #include "stream-fd.h" #include "vlog.h" -VLOG_DEFINE_THIS_MODULE(stream_unix) +VLOG_DEFINE_THIS_MODULE(stream_unix); /* Active UNIX socket. */ @@ -63,7 +63,7 @@ unix_open(const char *name, char *suffix, struct stream **streamp) bind_path, streamp); } -struct stream_class unix_stream_class = { +const struct stream_class unix_stream_class = { "unix", /* name */ unix_open, /* open */ NULL, /* close */ @@ -99,7 +99,7 @@ punix_open(const char *name OVS_UNUSED, char *suffix, return error; } - return new_fd_pstream("punix", fd, punix_accept, + return new_fd_pstream(name, fd, punix_accept, xstrdup(suffix), pstreamp); } @@ -119,7 +119,7 @@ punix_accept(int fd, const struct sockaddr *sa, size_t sa_len, return new_fd_stream(name, fd, 0, NULL, streamp); } -struct pstream_class punix_pstream_class = { +const struct pstream_class punix_pstream_class = { "punix", punix_open, NULL,