diff options
author | Sreeram Ramachandran <sreeram@google.com> | 2014-05-18 15:18:36 -0700 |
---|---|---|
committer | Sreeram Ramachandran <sreeram@google.com> | 2014-05-18 15:18:36 -0700 |
commit | 72c53933f852be6d1cd6c09c86176fbc6d609dac (patch) | |
tree | ab9422270d7a1ba6e973e7271376bdc6ccc73063 /libc/bionic/accept.cpp | |
parent | 6c83305c9a0c43eff407f3b4a2ff10ad0be26f01 (diff) | |
download | bionic-72c53933f852be6d1cd6c09c86176fbc6d609dac.zip bionic-72c53933f852be6d1cd6c09c86176fbc6d609dac.tar.gz bionic-72c53933f852be6d1cd6c09c86176fbc6d609dac.tar.bz2 |
Cosmetic changes to netd client files.
+ Name the dispatch header correctly (NetdClientDispatch.h).
+ Hide the global dispatch variable (__netdClientDispatch).
+ Explain why it's okay to read the variable without locking.
+ Use quotes instead of angle-brackets for non-system includes.
+ Add necessary declarations for C compiles (and not just C++).
Change-Id: Id0932165e71d81da5fce77a684f40c2263f58e61
Diffstat (limited to 'libc/bionic/accept.cpp')
-rw-r--r-- | libc/bionic/accept.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/bionic/accept.cpp b/libc/bionic/accept.cpp index 46b4efc..8073234 100644 --- a/libc/bionic/accept.cpp +++ b/libc/bionic/accept.cpp @@ -14,7 +14,8 @@ * limitations under the License. */ -#include <private/NetdClient.h> +#include "private/NetdClientDispatch.h" + #include <sys/socket.h> int accept(int sockfd, sockaddr* addr, socklen_t* addrlen) { |