[SCM] Samba Shared Repository - branch master updated

Volker Lendecke vlendec at samba.org
Tue Jan 24 14:46:03 MST 2012


The branch, master has been updated
       via  7722e63 s3: Remove a typedef
       via  637838a s3: Remove a typedef
      from  c19753b s3: Add debug when a message is registered

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 7722e637b8d0c0ad5ff6bc76a5018c3253eda55d
Author: Volker Lendecke <vl at samba.org>
Date:   Tue Jan 24 21:04:40 2012 +0100

    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 at samba.org>
    Autobuild-Date: Tue Jan 24 22:45:50 CET 2012 on sn-devel-104

commit 637838a1a93d876338eeb38225ad5251f6d41677
Author: Volker Lendecke <vl at samba.org>
Date:   Tue Jan 24 21:04:00 2012 +0100

    s3: Remove a typedef

-----------------------------------------------------------------------

Summary of changes:
 source3/utils/dbwrap_tool.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/utils/dbwrap_tool.c b/source3/utils/dbwrap_tool.c
index e178d5c..a74819a 100644
--- a/source3/utils/dbwrap_tool.c
+++ b/source3/utils/dbwrap_tool.c
@@ -28,9 +28,9 @@
 #include "messages.h"
 #include "util_tdb.h"
 
-typedef enum { OP_FETCH, OP_STORE, OP_DELETE, OP_ERASE, OP_LISTKEYS } dbwrap_op;
+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,
@@ -298,8 +298,8 @@ static int dbwrap_tool_listkeys(struct db_context *db,
 }
 
 struct dbwrap_op_dispatch_table {
-	dbwrap_op op;
-	dbwrap_type type;
+	enum dbwrap_op op;
+	enum dbwrap_type type;
 	int (*cmd)(struct db_context *db,
 		   const char *keyname,
 		   const char *data);
@@ -330,10 +330,10 @@ int main(int argc, const char **argv)
 
 	const char *dbname;
 	const char *opname;
-	dbwrap_op op;
+	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();


-- 
Samba Shared Repository


More information about the samba-cvs mailing list