Inline the *_MAGIC defines to avoid a dependency on kernel_headers

This commit is contained in:
sin 2014-04-14 14:59:39 +01:00
parent 2521a5edec
commit 6c19de185a

View File

@ -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)
{