From 7722e637b8d0c0ad5ff6bc76a5018c3253eda55d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 24 Jan 2012 21:04:40 +0100 Subject: s3: Remove a typedef We have it in README.Coding to avoid typedef for structs, but I think it also applies to enums. Autobuild-User: Volker Lendecke Autobuild-Date: Tue Jan 24 22:45:50 CET 2012 on sn-devel-104 --- source3/utils/dbwrap_tool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/dbwrap_tool.c b/source3/utils/dbwrap_tool.c index cc0f1be6dc..a74819ae01 100644 --- a/source3/utils/dbwrap_tool.c +++ b/source3/utils/dbwrap_tool.c @@ -30,7 +30,7 @@ enum dbwrap_op { OP_FETCH, OP_STORE, OP_DELETE, OP_ERASE, OP_LISTKEYS }; -typedef enum { TYPE_INT32, TYPE_UINT32, TYPE_STRING, TYPE_HEX } dbwrap_type; +enum dbwrap_type { TYPE_INT32, TYPE_UINT32, TYPE_STRING, TYPE_HEX }; static int dbwrap_tool_fetch_int32(struct db_context *db, const char *keyname, @@ -299,7 +299,7 @@ static int dbwrap_tool_listkeys(struct db_context *db, struct dbwrap_op_dispatch_table { enum dbwrap_op op; - dbwrap_type type; + enum dbwrap_type type; int (*cmd)(struct db_context *db, const char *keyname, const char *data); @@ -333,7 +333,7 @@ int main(int argc, const char **argv) enum dbwrap_op op; const char *keyname = ""; const char *keytype = "int32"; - dbwrap_type type; + enum dbwrap_type type; const char *valuestr = "0"; TALLOC_CTX *mem_ctx = talloc_stackframe(); -- cgit