[svn-commits] russell: branch russell/iax_refcount r79910 - /team/russell/iax_refcount/main/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 17 15:27:44 CDT 2007


Author: russell
Date: Fri Aug 17 15:27:43 2007
New Revision: 79910

URL: http://svn.digium.com/view/asterisk?view=rev&rev=79910
Log:
convert some spaces to tabs

Modified:
    team/russell/iax_refcount/main/astobj2.c

Modified: team/russell/iax_refcount/main/astobj2.c
URL: http://svn.digium.com/view/asterisk/team/russell/iax_refcount/main/astobj2.c?view=diff&rev=79910&r1=79909&r2=79910
==============================================================================
--- team/russell/iax_refcount/main/astobj2.c (original)
+++ team/russell/iax_refcount/main/astobj2.c Fri Aug 17 15:27:43 2007
@@ -39,9 +39,9 @@
  * expensive. Consider making it external.
  */
 struct __priv_data {
-        ast_mutex_t     lock;
-        int             ref_counter;
-        ao2_destructor_fn destructor_fn;
+	ast_mutex_t lock;
+	int ref_counter;
+	ao2_destructor_fn destructor_fn;
 	int data_size;	/* for stats */
 	uint32_t magic;	/* magic number */
 };
@@ -53,8 +53,8 @@
  * followed by variable-size user data.
  */
 struct astobj2 {
-        struct __priv_data priv_data;
-        void *user_data[0];
+	struct __priv_data priv_data;
+	void *user_data[0];
 };
 
 struct ao2_stats {
@@ -247,12 +247,15 @@
  * we hold the lock (that we need anyways).
  */
 struct __ao2_container {
-        ao2_hash_fn hash_fn;
-        ao2_callback_fn cmp_fn;
-        int     n_buckets;
-        int     elements;       /* number of elements in the container */
-	int version;		/* please read above */
-        struct bucket buckets[0]; /* variable size */
+	ao2_hash_fn hash_fn;
+	ao2_callback_fn cmp_fn;
+	int n_buckets;
+	/*! Number of elements in the container */
+	int elements;
+	/*! described above */
+	int version;
+	/*! variable size */
+	struct bucket buckets[0];
 };
  
 /* it is convenient to have a hash function that always returns 0.
@@ -694,6 +697,6 @@
 int astobj2_init(void);
 int astobj2_init(void)
 {
-        ast_cli_register_multiple(cli_astobj2, sizeof(cli_astobj2) / sizeof(struct ast_cli_entry));
+	ast_cli_register_multiple(cli_astobj2, ARRAY_LEN(cli_astobj2));
 	return 0;
 }




More information about the svn-commits mailing list