From b68b3d5dd59d0ff16ef45c89655a9e43f3ad5b4f Mon Sep 17 00:00:00 2001 From: Stanislav Kinsbursky Date: Fri, 23 Mar 2012 20:23:00 +0400 Subject: [PATCH] dump: convert fd types into enum This is a precursor patch. Macro for max possible fd type will be required. And it's easier to use enum in this case. Signed-off-by: Stanislav Kinsbursky Signed-off-by: Pavel Emelyanov --- include/image.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/include/image.h b/include/image.h index 5bcfffd47..f2daae9d9 100644 --- a/include/image.h +++ b/include/image.h @@ -29,12 +29,16 @@ #define PIPEFS_MAGIC 0x50495045 -#define FDINFO_REG 1 -#define FDINFO_MAP 2 +enum fd_types { + FDINFO_UND, + FDINFO_REG, + FDINFO_MAP, -/* Specials */ -#define FDINFO_CWD 3 -#define FDINFO_EXE 4 + FDINFO_CWD, + FDINFO_EXE, + + FD_INFO_MAX +}; #define PAGE_IMAGE_SIZE 4096 #define PAGE_RSS 1