| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH v3, 16/16] xfsprogs: metadump: drop a typedef in db/metadump.c |
| From: | Alex Elder <aelder@xxxxxxx> |
| Date: | Fri, 18 Feb 2011 15:21:02 -0600 |
| User-agent: | Heirloom mailx 12.5 7/5/10 |
Use struct name_ent rather than its typedef, and just drop the
typedef entirely.
Signed-off-by: Alex Elder <aelder@xxxxxxx>
No significant changes in this version from the last version posted.
---
db/metadump.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Index: b/db/metadump.c
===================================================================
--- a/db/metadump.c
+++ b/db/metadump.c
@@ -341,12 +341,12 @@ copy_free_cnt_btree(
/* filename and extended attribute obfuscation routines */
-typedef struct name_ent {
+struct name_ent {
struct name_ent *next;
xfs_dahash_t hash;
int namelen;
uchar_t name[1];
-} name_ent_t;
+};
#define NAME_TABLE_SIZE 4096
@@ -356,7 +356,7 @@ static void
nametable_clear(void)
{
int i;
- name_ent_t *ent;
+ struct name_ent *ent;
for (i = 0; i < NAME_TABLE_SIZE; i++) {
while ((ent = nametable[i])) {
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH v3, 09/16] xfsprogs: metadump: don't loop on too many dups, Alex Elder |
|---|---|
| Next by Date: | [PATCH v3, 11/16] xfsprogs: metadump: move obfuscation algorithm into its own function, Alex Elder |
| Previous by Thread: | [PATCH v3, 09/16] xfsprogs: metadump: don't loop on too many dups, Alex Elder |
| Next by Thread: | Re: [PATCH v3, 16/16] xfsprogs: metadump: drop a typedef in db/metadump.c, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |