commit | e34ccd76cd17911aff4f6360211b862eec5387fe | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Fri Sep 23 10:06:28 2016 -0700 |
committer | Colin Cross <ccross@android.com> | Fri Sep 23 11:26:08 2016 -0700 |
tree | 0c672db958845b7fc7e1e0c8a4ac2950c2cbc644 | |
parent | d60fa7bb8c22446d6b936722468e0fc2387b859c [diff] |
Move android_get_control_socket out of line android_get_control_socket has a warning from the implicit cast from long to int. The warning was being hidden because cutils/sockets.h was included with -isystem. Move android_get_control_socket to sockets.cpp, since we don't want header only dependencies anyways, and fix the warning with a range check and a static_cast. Bug: 31492149 Test: m -j <module that uses sockets.h and -Wall> Change-Id: I1f394ab26d4ec8a7dd0e7907c10416d7f8647624