Rev 83: make some functions static, and remove an unused structure in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Tue Apr 10 09:40:30 GMT 2007


------------------------------------------------------------
revno: 83
revision-id: tridge at samba.org-20070410094029-2b9561032c749c8a
parent: tridge at samba.org-20070410093521-faf87738c5a369a7
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Tue 2007-04-10 19:40:29 +1000
message:
  make some functions static, and remove an unused structure
modified:
  common/ctdb_daemon.c           ctdb_daemon.c-20070409200331-3el1kqgdb9m4ib0g-1
  tcp/tcp_connect.c              tcp_connect.c-20061128004937-x70q1cu5xzg5g2tm-1
  tcp/tcp_init.c                 tcp_init.c-20061128004937-x70q1cu5xzg5g2tm-2
=== modified file 'common/ctdb_daemon.c'
--- a/common/ctdb_daemon.c	2007-04-10 09:33:21 +0000
+++ b/common/ctdb_daemon.c	2007-04-10 09:40:29 +0000
@@ -417,16 +417,10 @@
 }
 
 
-struct ctdbd_queue_packet {
-	struct ctdbd_queue_packet *next, *prev;
-	uint8_t *data;
-	uint32_t length;
-};
-
 /*
   queue a packet for sending
 */
-int ctdbd_queue_pkt(struct ctdb_context *ctdb, struct ctdb_req_header *hdr)
+static int ctdbd_queue_pkt(struct ctdb_context *ctdb, struct ctdb_req_header *hdr)
 {
 	return ctdb_queue_send(ctdb->daemon.queue, (uint8_t *)hdr, hdr->length);
 }

=== modified file 'tcp/tcp_connect.c'
--- a/tcp/tcp_connect.c	2007-04-10 09:33:21 +0000
+++ b/tcp/tcp_connect.c	2007-04-10 09:40:29 +0000
@@ -37,7 +37,7 @@
 /*
   called when a complete packet has come in - should not happen on this socket
  */
-void ctdb_tcp_tnode_cb(uint8_t *data, size_t cnt, void *private)
+static void ctdb_tcp_tnode_cb(uint8_t *data, size_t cnt, void *private)
 {
 	struct ctdb_node *node = talloc_get_type(private, struct ctdb_node);
 	struct ctdb_tcp_node *tnode = talloc_get_type(node->private, 

=== modified file 'tcp/tcp_init.c'
--- a/tcp/tcp_init.c	2007-04-10 02:39:25 +0000
+++ b/tcp/tcp_init.c	2007-04-10 09:40:29 +0000
@@ -29,7 +29,7 @@
 /*
   start the protocol going
 */
-int ctdb_tcp_start(struct ctdb_context *ctdb)
+static int ctdb_tcp_start(struct ctdb_context *ctdb)
 {
 	int i;
 
@@ -59,7 +59,7 @@
 /*
   initialise tcp portion of a ctdb node 
 */
-int ctdb_tcp_add_node(struct ctdb_node *node)
+static int ctdb_tcp_add_node(struct ctdb_node *node)
 {
 	struct ctdb_tcp_node *tnode;
 	tnode = talloc_zero(node, struct ctdb_tcp_node);
@@ -74,7 +74,7 @@
 /*
   transport packet allocator - allows transport to control memory for packets
 */
-void *ctdb_tcp_allocate_pkt(struct ctdb_context *ctdb, size_t size)
+static void *ctdb_tcp_allocate_pkt(struct ctdb_context *ctdb, size_t size)
 {
 	/* tcp transport needs to round to 8 byte alignment to ensure
 	   that we can use a length header and 64 bit elements in



More information about the samba-cvs mailing list