From: Alex Elder Date: Fri, 18 Feb 2011 21:21:02 +0000 (+0000) Subject: xfsprogs: metadump: drop a typedef in db/metadump.c X-Git-Tag: v3.1.5~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=78027d4889b89ea9771c15c246f6de90cac9e155;p=thirdparty%2Fxfsprogs-dev.git xfsprogs: metadump: drop a typedef in db/metadump.c Use struct name_ent rather than its typedef, and just drop the typedef entirely. Signed-off-by: Alex Elder Reviewed-by: Dave Chinner --- diff --git a/db/metadump.c b/db/metadump.c index 491635277..f75762345 100644 --- a/db/metadump.c +++ b/db/metadump.c @@ -337,12 +337,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; + int namelen; + uchar_t name[1]; +}; #define NAME_TABLE_SIZE 4096 @@ -352,7 +352,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])) {