mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-19 02:52:15 +00:00
Cleanup and small fixes
This commit is contained in:
@@ -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);
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user