ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit 6c19de185a77909c0573da214c07d88730c85918
parent 2521a5edec03d2ab579b038607ce2f2b195ac9df
Author: sin <sin@2f30.org>
Date:   Mon Apr 14 14:59:39 +0100

Inline the *_MAGIC defines to avoid a dependency on kernel_headers

Diffstat:
switch_root.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/switch_root.c b/switch_root.c @@ -2,7 +2,6 @@ #include <dirent.h> #include <fcntl.h> #include <limits.h> -#include <linux/magic.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -12,6 +11,9 @@ #include <unistd.h> #include "util.h" +#define RAMFS_MAGIC 0x858458f6 /* some random number */ +#define TMPFS_MAGIC 0x01021994 + static void delete_content(const char *dir, dev_t curdevice) {