summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2015-01-28 13:37:57 -0600
committerElliott Hughes2015-01-28 13:37:57 -0600
commita744b05984a963966cec08758ffe582d241be9d7 (patch)
treef9bde7bcbcc5f3e49cafe045b5951d3acdf27d23
parent9c4c5a6ed934490ba0fcce661594975a6f4c2c89 (diff)
downloadplatform-system-core-a744b05984a963966cec08758ffe582d241be9d7.tar.gz
platform-system-core-a744b05984a963966cec08758ffe582d241be9d7.tar.xz
platform-system-core-a744b05984a963966cec08758ffe582d241be9d7.zip
Add missing <malloc.h> and <string.h> includes.
Change-Id: Ia41756e607663d056e7d2fdd7ecbec7e5841a913
-rw-r--r--adf/libadfhwc/adfhwc.cpp1
-rw-r--r--fastbootd/commands/boot.c1
-rw-r--r--fastbootd/commands/partitions.c1
-rw-r--r--fastbootd/commands/virtual_partitions.c1
-rw-r--r--fastbootd/config.c1
-rw-r--r--fastbootd/other/gptedit.c1
-rw-r--r--fastbootd/transport.c1
-rw-r--r--fastbootd/utils.c1
-rw-r--r--libion/ion.c1
-rw-r--r--libmemtrack/memtrack.c3
-rw-r--r--libnetutils/packet.c1
-rw-r--r--libsync/sync.c1
-rw-r--r--libsysutils/src/SocketClient.cpp1
-rw-r--r--logd/LogStatistics.cpp1
-rw-r--r--logd/LogWhiteBlackList.cpp1
-rw-r--r--toolbox/ionice.c1
-rw-r--r--toolbox/lsof.c1
-rw-r--r--toolbox/renice.c1
-rw-r--r--toolbox/restorecon.c1
19 files changed, 21 insertions, 0 deletions
diff --git a/adf/libadfhwc/adfhwc.cpp b/adf/libadfhwc/adfhwc.cpp
index 57e09eb64..21f245ed0 100644
--- a/adf/libadfhwc/adfhwc.cpp
+++ b/adf/libadfhwc/adfhwc.cpp
@@ -15,6 +15,7 @@
15 */ 15 */
16 16
17#include <fcntl.h> 17#include <fcntl.h>
18#include <malloc.h>
18#include <poll.h> 19#include <poll.h>
19#include <pthread.h> 20#include <pthread.h>
20#include <sys/resource.h> 21#include <sys/resource.h>
diff --git a/fastbootd/commands/boot.c b/fastbootd/commands/boot.c
index 922914bc6..bb939176d 100644
--- a/fastbootd/commands/boot.c
+++ b/fastbootd/commands/boot.c
@@ -33,6 +33,7 @@
33#include <stdio.h> 33#include <stdio.h>
34#include <string.h> 34#include <string.h>
35#include <fcntl.h> 35#include <fcntl.h>
36#include <malloc.h>
36#include <unistd.h> 37#include <unistd.h>
37 38
38#include "boot.h" 39#include "boot.h"
diff --git a/fastbootd/commands/partitions.c b/fastbootd/commands/partitions.c
index 3b279590e..953c56a0f 100644
--- a/fastbootd/commands/partitions.c
+++ b/fastbootd/commands/partitions.c
@@ -42,6 +42,7 @@
42#include <linux/hdreg.h> 42#include <linux/hdreg.h>
43#include <sys/ioctl.h> 43#include <sys/ioctl.h>
44#include <stdlib.h> 44#include <stdlib.h>
45#include <string.h>
45#include <cutils/config_utils.h> 46#include <cutils/config_utils.h>
46#include <inttypes.h> 47#include <inttypes.h>
47 48
diff --git a/fastbootd/commands/virtual_partitions.c b/fastbootd/commands/virtual_partitions.c
index 9da402099..b72d5b63c 100644
--- a/fastbootd/commands/virtual_partitions.c
+++ b/fastbootd/commands/virtual_partitions.c
@@ -31,6 +31,7 @@
31 31
32#include "commands/virtual_partitions.h" 32#include "commands/virtual_partitions.h"
33 33
34#include <malloc.h>
34#include <string.h> 35#include <string.h>
35 36
36#include "debug.h" 37#include "debug.h"
diff --git a/fastbootd/config.c b/fastbootd/config.c
index 012a1978b..daac3fd10 100644
--- a/fastbootd/config.c
+++ b/fastbootd/config.c
@@ -31,6 +31,7 @@
31 31
32#include <errno.h> 32#include <errno.h>
33#include <fcntl.h> 33#include <fcntl.h>
34#include <malloc.h>
34#include <string.h> 35#include <string.h>
35#include <unistd.h> 36#include <unistd.h>
36#include <sys/types.h> 37#include <sys/types.h>
diff --git a/fastbootd/other/gptedit.c b/fastbootd/other/gptedit.c
index d423529ae..2b65a012d 100644
--- a/fastbootd/other/gptedit.c
+++ b/fastbootd/other/gptedit.c
@@ -33,6 +33,7 @@
33#include <inttypes.h> 33#include <inttypes.h>
34#include <stdio.h> 34#include <stdio.h>
35#include <stdlib.h> 35#include <stdlib.h>
36#include <string.h>
36#include <unistd.h> 37#include <unistd.h>
37 38
38#include <cutils/klog.h> 39#include <cutils/klog.h>
diff --git a/fastbootd/transport.c b/fastbootd/transport.c
index 232c99929..3ba0e9a9d 100644
--- a/fastbootd/transport.c
+++ b/fastbootd/transport.c
@@ -19,6 +19,7 @@
19#include <stddef.h> 19#include <stddef.h>
20#include <stdio.h> 20#include <stdio.h>
21#include <stdlib.h> 21#include <stdlib.h>
22#include <string.h>
22#include <unistd.h> 23#include <unistd.h>
23#include <sys/mman.h> 24#include <sys/mman.h>
24 25
diff --git a/fastbootd/utils.c b/fastbootd/utils.c
index a9ab47ebe..4c3a2e811 100644
--- a/fastbootd/utils.c
+++ b/fastbootd/utils.c
@@ -36,6 +36,7 @@
36#include <sys/ioctl.h> 36#include <sys/ioctl.h>
37#include <linux/fs.h> 37#include <linux/fs.h>
38#include <stdlib.h> 38#include <stdlib.h>
39#include <string.h>
39#include <cutils/properties.h> 40#include <cutils/properties.h>
40 41
41#include "utils.h" 42#include "utils.h"
diff --git a/libion/ion.c b/libion/ion.c
index a79525dc8..490893258 100644
--- a/libion/ion.c
+++ b/libion/ion.c
@@ -23,6 +23,7 @@
23#include <errno.h> 23#include <errno.h>
24#include <fcntl.h> 24#include <fcntl.h>
25#include <stdio.h> 25#include <stdio.h>
26#include <string.h>
26#include <sys/ioctl.h> 27#include <sys/ioctl.h>
27#include <sys/mman.h> 28#include <sys/mman.h>
28#include <sys/types.h> 29#include <sys/types.h>
diff --git a/libmemtrack/memtrack.c b/libmemtrack/memtrack.c
index 5d680830b..21d9ebdb9 100644
--- a/libmemtrack/memtrack.c
+++ b/libmemtrack/memtrack.c
@@ -21,6 +21,9 @@
21#include <log/log.h> 21#include <log/log.h>
22 22
23#include <errno.h> 23#include <errno.h>
24#include <malloc.h>
25#include <string.h>
26
24#include <hardware/memtrack.h> 27#include <hardware/memtrack.h>
25 28
26#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) 29#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
diff --git a/libnetutils/packet.c b/libnetutils/packet.c
index a878dd3a7..cd26d058a 100644
--- a/libnetutils/packet.c
+++ b/libnetutils/packet.c
@@ -15,6 +15,7 @@
15 */ 15 */
16 16
17#include <stdlib.h> 17#include <stdlib.h>
18#include <string.h>
18#include <unistd.h> 19#include <unistd.h>
19#include <sys/uio.h> 20#include <sys/uio.h>
20#include <sys/socket.h> 21#include <sys/socket.h>
diff --git a/libsync/sync.c b/libsync/sync.c
index 489286673..d73bb111c 100644
--- a/libsync/sync.c
+++ b/libsync/sync.c
@@ -17,6 +17,7 @@
17 */ 17 */
18 18
19#include <fcntl.h> 19#include <fcntl.h>
20#include <malloc.h>
20#include <stdint.h> 21#include <stdint.h>
21#include <string.h> 22#include <string.h>
22 23
diff --git a/libsysutils/src/SocketClient.cpp b/libsysutils/src/SocketClient.cpp
index 835882377..bb9b6a164 100644
--- a/libsysutils/src/SocketClient.cpp
+++ b/libsysutils/src/SocketClient.cpp
@@ -1,5 +1,6 @@
1#include <alloca.h> 1#include <alloca.h>
2#include <errno.h> 2#include <errno.h>
3#include <malloc.h>
3#include <pthread.h> 4#include <pthread.h>
4#include <signal.h> 5#include <signal.h>
5#include <string.h> 6#include <string.h>
diff --git a/logd/LogStatistics.cpp b/logd/LogStatistics.cpp
index 6f3a08869..53036e669 100644
--- a/logd/LogStatistics.cpp
+++ b/logd/LogStatistics.cpp
@@ -15,6 +15,7 @@
15 */ 15 */
16 16
17#include <fcntl.h> 17#include <fcntl.h>
18#include <malloc.h>
18#include <stdarg.h> 19#include <stdarg.h>
19#include <time.h> 20#include <time.h>
20 21
diff --git a/logd/LogWhiteBlackList.cpp b/logd/LogWhiteBlackList.cpp
index 9728db17b..691085480 100644
--- a/logd/LogWhiteBlackList.cpp
+++ b/logd/LogWhiteBlackList.cpp
@@ -15,6 +15,7 @@
15 */ 15 */
16 16
17#include <ctype.h> 17#include <ctype.h>
18#include <malloc.h>
18 19
19#include <utils/String8.h> 20#include <utils/String8.h>
20 21
diff --git a/toolbox/ionice.c b/toolbox/ionice.c
index 4a182f2de..7abc261a5 100644
--- a/toolbox/ionice.c
+++ b/toolbox/ionice.c
@@ -1,5 +1,6 @@
1#include <stdio.h> 1#include <stdio.h>
2#include <stdlib.h> 2#include <stdlib.h>
3#include <string.h>
3#include <unistd.h> 4#include <unistd.h>
4#include <errno.h> 5#include <errno.h>
5 6
diff --git a/toolbox/lsof.c b/toolbox/lsof.c
index bee981dee..982f5aaf6 100644
--- a/toolbox/lsof.c
+++ b/toolbox/lsof.c
@@ -35,6 +35,7 @@
35#include <libgen.h> 35#include <libgen.h>
36#include <stdio.h> 36#include <stdio.h>
37#include <stdlib.h> 37#include <stdlib.h>
38#include <string.h>
38#include <unistd.h> 39#include <unistd.h>
39 40
40#include <pwd.h> 41#include <pwd.h>
diff --git a/toolbox/renice.c b/toolbox/renice.c
index 9dfeb51f9..99a06f489 100644
--- a/toolbox/renice.c
+++ b/toolbox/renice.c
@@ -32,6 +32,7 @@
32#include <stdio.h> 32#include <stdio.h>
33#include <unistd.h> 33#include <unistd.h>
34#include <stdlib.h> 34#include <stdlib.h>
35#include <string.h>
35#include <sys/time.h> 36#include <sys/time.h>
36#include <sys/resource.h> 37#include <sys/resource.h>
37#include <sched.h> 38#include <sched.h>
diff --git a/toolbox/restorecon.c b/toolbox/restorecon.c
index 35686254d..cb5799e1a 100644
--- a/toolbox/restorecon.c
+++ b/toolbox/restorecon.c
@@ -1,6 +1,7 @@
1#include <unistd.h> 1#include <unistd.h>
2#include <stdio.h> 2#include <stdio.h>
3#include <stdlib.h> 3#include <stdlib.h>
4#include <string.h>
4#include <errno.h> 5#include <errno.h>
5#include <selinux/selinux.h> 6#include <selinux/selinux.h>
6#include <selinux/android.h> 7#include <selinux/android.h>