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
This commit is contained in:
Sreeram Ramachandran
2014-05-18 15:18:36 -07:00
parent 6c83305c9a
commit 72c53933f8
5 changed files with 22 additions and 13 deletions

View File

@@ -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) {