Inline the *_MAGIC defines to avoid a dependency on kernel_headers
This commit is contained in:
parent
2521a5edec
commit
6c19de185a
@ -2,7 +2,6 @@
|
|||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <linux/magic.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -12,6 +11,9 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
#define RAMFS_MAGIC 0x858458f6 /* some random number */
|
||||||
|
#define TMPFS_MAGIC 0x01021994
|
||||||
|
|
||||||
static void
|
static void
|
||||||
delete_content(const char *dir, dev_t curdevice)
|
delete_content(const char *dir, dev_t curdevice)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user