Skip to content

Commit

Permalink
Remove double-array function
Browse files Browse the repository at this point in the history
This is no longer used.

Signed-off-by: Eric Curtin <[email protected]>
  • Loading branch information
ericcurtin committed Feb 12, 2024
1 parent b373b65 commit eed55de
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions initoverlayfs-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,17 +286,7 @@ static inline void mounts(const conf* c) {
c->bootfstype.val->c_str, errno, strerror(errno));
}

static inline size_t double_array(char*** ptr, size_t size) {
size *= 2;
char** tmp_ptr = (char**)realloc(*ptr, size * sizeof(char*));
if (!tmp_ptr)
return 0;

*ptr = tmp_ptr;
return size;
}

void wait_mount_bootfs(const conf* c) {
static void wait_mount_bootfs(const conf* c) {
fork_execlp("udevadm", "wait", c->bootfs.val->c_str);

errno = 0;
Expand Down

0 comments on commit eed55de

Please sign in to comment.