mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 05:48:05 +00:00
parasite: Drop dead code
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
1e93a46e9b
commit
11df96b407
18
parasite.c
18
parasite.c
@ -79,24 +79,6 @@ static void brk_free(unsigned long bytes)
|
|||||||
brk_tail -= bytes;
|
brk_tail -= bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
static const unsigned char hex[] = "0123456789abcdef";
|
|
||||||
static char *long2hex(unsigned long v)
|
|
||||||
{
|
|
||||||
static char buf[32];
|
|
||||||
char *p = buf;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
for (i = sizeof(long) - 1; i >= 0; i--) {
|
|
||||||
*p++ = hex[ ((((unsigned char *)&v)[i]) & 0xf0) >> 4 ];
|
|
||||||
*p++ = hex[ ((((unsigned char *)&v)[i]) & 0x0f) >> 0 ];
|
|
||||||
}
|
|
||||||
*p = 0;
|
|
||||||
|
|
||||||
return buf;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define PME_PRESENT (1ULL << 63)
|
#define PME_PRESENT (1ULL << 63)
|
||||||
#define PME_SWAP (1ULL << 62)
|
#define PME_SWAP (1ULL << 62)
|
||||||
#define PME_FILE (1ULL << 61)
|
#define PME_FILE (1ULL << 61)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user