Cleanup and small fixes

This commit is contained in:
topjohnwu 2017-12-04 18:05:07 +08:00
parent 70a322263e
commit bb97cc594d
9 changed files with 7 additions and 15 deletions

4
.gitignore vendored
View File

@ -1,6 +1,4 @@
/out
/obj
/libs
out
*.zip
*.jks
*.apk

2
core/.gitignore vendored
View File

@ -1 +1,3 @@
/build
obj
libs

View File

@ -11,8 +11,6 @@
#include <fcntl.h>
#include <string.h>
#include <dirent.h>
#include <linux/loop.h>
#include <sys/ioctl.h>
#include <sys/mount.h>
#include <sys/wait.h>
#include <selinux/selinux.h>

View File

@ -8,7 +8,6 @@
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <pthread.h>
#include <signal.h>
#include <sys/un.h>

View File

@ -6,7 +6,6 @@
*/
#include <stdio.h>
#include <limits.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/wait.h>

View File

@ -4,10 +4,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <dirent.h>
#include <string.h>
#include <sys/mount.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <selinux/selinux.h>

View File

@ -168,6 +168,7 @@ void cpio_ln(struct vector *v, const char *target, const char *entry) {
cpio_entry *f = xcalloc(sizeof(*f), 1);
f->mode = S_IFLNK;
f->filename = strdup(entry);
f->filesize = strlen(target) + 1;
f->data = strdup(target);
cpio_vec_insert(v, f);
fprintf(stderr, "Create symlink [%s] -> [%s]\n", entry, target);

View File

@ -1,9 +1,6 @@
/* list.h - Double link list implementation
*/
#include <stdlib.h>
#include <string.h>
#include "list.h"
void init_list_head(struct list_head *head) {