minijail: Clean up elfparse.h

Turn #define's into enum's, fix typos.

BUG=None
TEST=security_Minijail0 passes on expresso.

Change-Id: I1c9846ccb424628a8fe31af193657ffb551ef7c5
Reviewed-on: https://chromium-review.googlesource.com/213836
Reviewed-by: Lee Campbell <leecam@chromium.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Commit-Queue: Jorge Lucangeli Obes <jorgelo@chromium.org>
Tested-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
diff --git a/elfparse.h b/elfparse.h
index e7fe76a..6b65eae 100644
--- a/elfparse.h
+++ b/elfparse.h
@@ -89,21 +89,15 @@
 #pragma pack(pop)
 /* End of definitions from elf.h */
 
-
-#define ELFERROR    0
-#define ELFSTATIC   1
-#define ELFDYNAMIC  2
+enum ElfTypeEnum { ELFERROR=0, ELFSTATIC=1, ELFDYNAMIC=2 };
+typedef enum ElfTypeEnum ElfType;
 
 /*
- * This is the inital amout of the elf we try and read.
+ * This is the initial amount of the ELF file we try and read.
  * It is the same value that the kernel uses (BINPRM_BUF_SIZE).
  */
 #define HEADERSIZE  128
 
-typedef int ElfType;
-
 ElfType get_elf_linkage(const char *path);
 
-
-
-#endif /* _ELFPARSE_H_ */
\ No newline at end of file
+#endif /* _ELFPARSE_H_ */