Skip to content

Commit

Permalink
Add missing <malloc.h> and <string.h> includes.
Browse files Browse the repository at this point in the history
Change-Id: Ia41756e607663d056e7d2fdd7ecbec7e5841a913
  • Loading branch information
enh-google committed Jan 28, 2015
1 parent 9c4c5a6 commit a744b05
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions adf/libadfhwc/adfhwc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

#include <fcntl.h>
#include <malloc.h>
#include <poll.h>
#include <pthread.h>
#include <sys/resource.h>
Expand Down
1 change: 1 addition & 0 deletions fastbootd/commands/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <malloc.h>
#include <unistd.h>

#include "boot.h"
Expand Down
1 change: 1 addition & 0 deletions fastbootd/commands/partitions.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <linux/hdreg.h>
#include <sys/ioctl.h>
#include <stdlib.h>
#include <string.h>
#include <cutils/config_utils.h>
#include <inttypes.h>

Expand Down
1 change: 1 addition & 0 deletions fastbootd/commands/virtual_partitions.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

#include "commands/virtual_partitions.h"

#include <malloc.h>
#include <string.h>

#include "debug.h"
Expand Down
1 change: 1 addition & 0 deletions fastbootd/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

#include <errno.h>
#include <fcntl.h>
#include <malloc.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
Expand Down
1 change: 1 addition & 0 deletions fastbootd/other/gptedit.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include <cutils/klog.h>
Expand Down
1 change: 1 addition & 0 deletions fastbootd/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>

Expand Down
1 change: 1 addition & 0 deletions fastbootd/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <sys/ioctl.h>
#include <linux/fs.h>
#include <stdlib.h>
#include <string.h>
#include <cutils/properties.h>

#include "utils.h"
Expand Down
1 change: 1 addition & 0 deletions libion/ion.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/types.h>
Expand Down
3 changes: 3 additions & 0 deletions libmemtrack/memtrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
#include <log/log.h>

#include <errno.h>
#include <malloc.h>
#include <string.h>

#include <hardware/memtrack.h>

#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
Expand Down
1 change: 1 addition & 0 deletions libnetutils/packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/uio.h>
#include <sys/socket.h>
Expand Down
1 change: 1 addition & 0 deletions libsync/sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include <fcntl.h>
#include <malloc.h>
#include <stdint.h>
#include <string.h>

Expand Down
1 change: 1 addition & 0 deletions libsysutils/src/SocketClient.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <alloca.h>
#include <errno.h>
#include <malloc.h>
#include <pthread.h>
#include <signal.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions logd/LogStatistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

#include <fcntl.h>
#include <malloc.h>
#include <stdarg.h>
#include <time.h>

Expand Down
1 change: 1 addition & 0 deletions logd/LogWhiteBlackList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

#include <ctype.h>
#include <malloc.h>

#include <utils/String8.h>

Expand Down
1 change: 1 addition & 0 deletions toolbox/ionice.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>

Expand Down
1 change: 1 addition & 0 deletions toolbox/lsof.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <libgen.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include <pwd.h>
Expand Down
1 change: 1 addition & 0 deletions toolbox/renice.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sched.h>
Expand Down
1 change: 1 addition & 0 deletions toolbox/restorecon.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <selinux/selinux.h>
#include <selinux/android.h>
Expand Down

0 comments on commit a744b05

Please sign in to comment.