From: Volker Lendecke Date: Tue, 24 Jan 2012 20:04:40 +0000 (+0100) Subject: s3: Remove a typedef X-Git-Tag: tevent-0.9.15~261 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7722e637b8d0c0ad5ff6bc76a5018c3253eda55d;p=thirdparty%2Fsamba.git 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 --- diff --git a/source3/utils/dbwrap_tool.c b/source3/utils/dbwrap_tool.c index cc0f1be6dc2..a74819ae01f 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();