[Pvfs2-cvs] commit by pw in pvfs2/src/io/bmi/bmi_tcp: bmi-tcp.c

CVS commit program cvs at parl.clemson.edu
Wed Jul 18 17:32:58 EDT 2007


Update of /projects/cvsroot/pvfs2/src/io/bmi/bmi_tcp
In directory parlweb1:/tmp/cvs-serv15937/src/io/bmi/bmi_tcp

Modified Files:
	bmi-tcp.c 
Log Message:
Move private method parameters structures to their respective methods.


Index: bmi-tcp.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/bmi/bmi_tcp/bmi-tcp.c,v
diff -u -p -p -u -r1.115 -r1.116
--- bmi-tcp.c	18 Jul 2007 21:04:00 -0000	1.115
+++ bmi-tcp.c	18 Jul 2007 21:32:58 -0000	1.116
@@ -315,7 +315,12 @@ struct bmi_method_ops bmi_tcp_ops = {
 };
 
 /* module parameters */
-static method_params_st tcp_method_params;
+static struct
+{
+    int method_flags;
+    int method_id;
+    method_addr_p listen_addr;
+} tcp_method_params;
 
 #if defined(USE_TRUSTED) && defined(__PVFS2_SERVER__)
 static struct tcp_allowed_connection_s *gtcp_allowed_connection = NULL;
@@ -417,7 +422,7 @@ int BMI_tcp_initialize(method_addr_p lis
     gen_mutex_lock(&interface_mutex);
 
     /* zero out our parameter structure and fill it in */
-    memset(&tcp_method_params, 0, sizeof(struct method_params));
+    memset(&tcp_method_params, 0, sizeof(tcp_method_params));
     tcp_method_params.method_id = method_id;
     tcp_method_params.method_flags = init_flags;
 



More information about the Pvfs2-cvs mailing list