logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/bootstrap-initrd.git
commit: 064f8b390793f4dffbc45ee0ad50a85b4daa20c8
parent 251e7ee6cde6e2fd8d28794c36b869e06db0c6c8
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue,  4 Jun 2024 12:32:47 +0200

init.c: Remove unused e_mknod function

Diffstat:

Minit.c9---------
1 file changed, 0 insertions(+), 9 deletions(-)

diff --git a/init.c b/init.c @@ -12,8 +12,6 @@ #include <string.h> // strerror #include <errno.h> #include <sys/wait.h> // waitpid -#include <sys/stat.h> // mknod -#include <sys/sysmacros.h> // makedev #include <sys/mount.h> #include <fcntl.h> // O_RDONLY @@ -52,13 +50,6 @@ build_loksh() return 0; } -static void -e_mknod(const char *path, mode_t mode, dev_t dev) -{ - if(mknod(path, mode, dev) < 0) - fprintf(stderr, "Failed creating device '%s': %s\n", path, strerror(errno)); -} - int main(int argc, char *argv[]) {