From 9b119ea634896d804128c6f18059abe822ca6964 Mon Sep 17 00:00:00 2001 From: Joseph Koshy Date: Tue, 17 Oct 2006 05:43:30 +0000 Subject: [PATCH] Convert types 'Elf{32,64}_Nhdr' into aliases of the generic 'Elf_Note' type. Reviewed by: jb --- sys/sys/elf32.h | 6 +----- sys/sys/elf64.h | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/sys/sys/elf32.h b/sys/sys/elf32.h index a40a5ac5d6e..62bf7be680b 100644 --- a/sys/sys/elf32.h +++ b/sys/sys/elf32.h @@ -141,11 +141,7 @@ typedef struct { /* * Note entry header */ -typedef struct { - Elf32_Word n_namesz; /* length of note's name */ - Elf32_Word n_descsz; /* length of note's "desc" */ - Elf32_Word n_type; /* type of note */ -} Elf32_Nhdr; +typedef Elf_Note Elf32_Nhdr; /* * Move entry diff --git a/sys/sys/elf64.h b/sys/sys/elf64.h index 33b2d4b1bce..0fbb8ee7c39 100644 --- a/sys/sys/elf64.h +++ b/sys/sys/elf64.h @@ -155,11 +155,7 @@ typedef struct { /* * Note entry header */ -typedef struct { - Elf64_Word n_namesz; /* length of note's name */ - Elf64_Word n_descsz; /* length of note's "desc" */ - Elf64_Word n_type; /* type of note */ -} Elf64_Nhdr; +typedef Elf_Note Elf64_Nhdr; /* * Move entry