diff options
author | Volker Lendecke <vl@samba.org> | 2012-01-24 21:04:40 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2012-01-24 22:45:49 +0100 |
commit | 7722e637b8d0c0ad5ff6bc76a5018c3253eda55d (patch) | |
tree | 2d10064479b93732029c993ccae459aa9ddc2ade /source3/utils | |
parent | 637838a1a93d876338eeb38225ad5251f6d41677 (diff) | |
download | samba-7722e637b8d0c0ad5ff6bc76a5018c3253eda55d.tar.gz samba-7722e637b8d0c0ad5ff6bc76a5018c3253eda55d.tar.bz2 samba-7722e637b8d0c0ad5ff6bc76a5018c3253eda55d.zip |
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 <vlendec@samba.org>
Autobuild-Date: Tue Jan 24 22:45:50 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/dbwrap_tool.c | 6 |
1 files changed, 3 insertions, 3 deletions
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(); |