diff options
author | Tom Cherry <tomcherry@google.com> | 2017-04-06 16:30:22 -0700 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2017-04-06 18:06:34 -0700 |
commit | 3f5eaae526413a29de899270714469c76dc91ec8 (patch) | |
tree | c7de454140682dad1661449b29badf31f001e345 /init/property_service.cpp | |
parent | b15882faab26af76f0bca30c2ce4ef4890eb4502 (diff) | |
download | core-3f5eaae526413a29de899270714469c76dc91ec8.tar.gz core-3f5eaae526413a29de899270714469c76dc91ec8.tar.bz2 core-3f5eaae526413a29de899270714469c76dc91ec8.zip |
init: more header cleanup
Remove includes of "log.h" that really want <android-base/logging.h>
Fix header include order
Remove headers included in .cpp files that their associated .h already includes
Remove some unused headers
Test: boot bullhead
Change-Id: I2b415adfe86a5c8bbe4fb1ebc53c7b0ee2253824
Diffstat (limited to 'init/property_service.cpp')
-rw-r--r-- | init/property_service.cpp | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/init/property_service.cpp b/init/property_service.cpp index a4d8b5fd1..985722312 100644 --- a/init/property_service.cpp +++ b/init/property_service.cpp @@ -14,46 +14,44 @@ * limitations under the License. */ +#include "property_service.h" + +#include <ctype.h> +#include <dirent.h> +#include <errno.h> +#include <fcntl.h> #include <inttypes.h> +#include <limits.h> +#include <netinet/in.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> -#include <unistd.h> #include <string.h> -#include <ctype.h> -#include <fcntl.h> -#include <stdarg.h> -#include <dirent.h> -#include <limits.h> -#include <errno.h> +#include <sys/mman.h> #include <sys/poll.h> - -#include <memory> -#include <vector> +#include <sys/select.h> +#include <sys/types.h> +#include <sys/un.h> +#include <unistd.h> #define _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_ #include <sys/_system_properties.h> -#include <sys/socket.h> -#include <sys/un.h> -#include <sys/select.h> -#include <sys/types.h> -#include <netinet/in.h> -#include <sys/mman.h> - -#include <selinux/android.h> -#include <selinux/selinux.h> -#include <selinux/label.h> +#include <memory> +#include <vector> -#include <fs_mgr.h> #include <android-base/file.h> +#include <android-base/logging.h> #include <android-base/stringprintf.h> #include <android-base/strings.h> -#include "bootimg.h" +#include <bootimg.h> +#include <fs_mgr.h> +#include <selinux/android.h> +#include <selinux/label.h> +#include <selinux/selinux.h> -#include "property_service.h" #include "init.h" #include "util.h" -#include "log.h" using android::base::StringPrintf; |