Commit bb97cc59 authored by topjohnwu's avatar topjohnwu

Cleanup and small fixes

parent 70a32226
/out out
/obj
/libs
*.zip *.zip
*.jks *.jks
*.apk *.apk
......
/build /build
obj
libs
\ No newline at end of file
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
#include <fcntl.h> #include <fcntl.h>
#include <string.h> #include <string.h>
#include <dirent.h> #include <dirent.h>
#include <linux/loop.h>
#include <sys/ioctl.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <selinux/selinux.h> #include <selinux/selinux.h>
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <string.h> #include <string.h>
#include <errno.h>
#include <pthread.h> #include <pthread.h>
#include <signal.h> #include <signal.h>
#include <sys/un.h> #include <sys/un.h>
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <limits.h>
#include <pthread.h> #include <pthread.h>
#include <unistd.h> #include <unistd.h>
#include <sys/wait.h> #include <sys/wait.h>
......
...@@ -4,10 +4,8 @@ ...@@ -4,10 +4,8 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h>
#include <dirent.h> #include <dirent.h>
#include <string.h> #include <string.h>
#include <sys/mount.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <selinux/selinux.h> #include <selinux/selinux.h>
......
...@@ -168,6 +168,7 @@ void cpio_ln(struct vector *v, const char *target, const char *entry) { ...@@ -168,6 +168,7 @@ void cpio_ln(struct vector *v, const char *target, const char *entry) {
cpio_entry *f = xcalloc(sizeof(*f), 1); cpio_entry *f = xcalloc(sizeof(*f), 1);
f->mode = S_IFLNK; f->mode = S_IFLNK;
f->filename = strdup(entry); f->filename = strdup(entry);
f->filesize = strlen(target) + 1;
f->data = strdup(target); f->data = strdup(target);
cpio_vec_insert(v, f); cpio_vec_insert(v, f);
fprintf(stderr, "Create symlink [%s] -> [%s]\n", entry, target); fprintf(stderr, "Create symlink [%s] -> [%s]\n", entry, target);
......
/* list.h - Double link list implementation /* list.h - Double link list implementation
*/ */
#include <stdlib.h>
#include <string.h>
#include "list.h" #include "list.h"
void init_list_head(struct list_head *head) { void init_list_head(struct list_head *head) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment