aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-09-08 16:12:15 +0000
committerPeter Palfrader <peter@palfrader.org>2006-09-08 16:12:15 +0000
commitfdd56dee69e1f683ad68ee5598bba4bf2edb5d82 (patch)
tree4d5b8dbd3e2245ce7bf75f8c80180b258ac2b710 /src/or
parentf9f281251bdbc6a808d76279b8016cc5239926e1 (diff)
downloadtor-fdd56dee69e1f683ad68ee5598bba4bf2edb5d82.tar.gz
tor-fdd56dee69e1f683ad68ee5598bba4bf2edb5d82.zip
r9695@danube: weasel | 2006-09-08 18:11:53 +0200
Make tor build with -O0 svn:r8352
Diffstat (limited to 'src/or')
-rw-r--r--src/or/or.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 01b489533e..33b7016ec5 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -789,33 +789,33 @@ typedef struct control_connection_t {
/** Convert a connection_t* to an or_connection_t*; assert if the cast is
* invalid. */
-or_connection_t *TO_OR_CONN(connection_t *);
+static or_connection_t *TO_OR_CONN(connection_t *);
/** Convert a connection_t* to a dir_connection_t*; assert if the cast is
* invalid. */
-dir_connection_t *TO_DIR_CONN(connection_t *);
+static dir_connection_t *TO_DIR_CONN(connection_t *);
/** Convert a connection_t* to an edge_connection_t*; assert if the cast is
* invalid. */
-edge_connection_t *TO_EDGE_CONN(connection_t *);
+static edge_connection_t *TO_EDGE_CONN(connection_t *);
/** Convert a connection_t* to an control_connection_t*; assert if the cast is
* invalid. */
-control_connection_t *TO_CONTROL_CONN(connection_t *);
+static control_connection_t *TO_CONTROL_CONN(connection_t *);
-extern INLINE or_connection_t *TO_OR_CONN(connection_t *c)
+static INLINE or_connection_t *TO_OR_CONN(connection_t *c)
{
tor_assert(c->magic == OR_CONNECTION_MAGIC);
return DOWNCAST(or_connection_t, c);
}
-extern INLINE dir_connection_t *TO_DIR_CONN(connection_t *c)
+static INLINE dir_connection_t *TO_DIR_CONN(connection_t *c)
{
tor_assert(c->magic == DIR_CONNECTION_MAGIC);
return DOWNCAST(dir_connection_t, c);
}
-extern INLINE edge_connection_t *TO_EDGE_CONN(connection_t *c)
+static INLINE edge_connection_t *TO_EDGE_CONN(connection_t *c)
{
tor_assert(c->magic == EDGE_CONNECTION_MAGIC);
return DOWNCAST(edge_connection_t, c);
}
-extern INLINE control_connection_t *TO_CONTROL_CONN(connection_t *c)
+static INLINE control_connection_t *TO_CONTROL_CONN(connection_t *c)
{
tor_assert(c->magic == CONTROL_CONNECTION_MAGIC);
return DOWNCAST(control_connection_t, c);
@@ -1302,18 +1302,18 @@ typedef struct or_circuit_t {
/** Convert a circuit_t* to a pointer to the enclosing or_circuit_t. Asserts
* if the cast is impossible. */
-or_circuit_t *TO_OR_CIRCUIT(circuit_t *);
+static or_circuit_t *TO_OR_CIRCUIT(circuit_t *);
/** Convert a circuit_t* to a pointer to the enclosing origin_circuit_t.
* Asserts if the cast is impossible. */
-origin_circuit_t *TO_ORIGIN_CIRCUIT(circuit_t *);
+static origin_circuit_t *TO_ORIGIN_CIRCUIT(circuit_t *);
-extern INLINE or_circuit_t *TO_OR_CIRCUIT(circuit_t *x)
+static INLINE or_circuit_t *TO_OR_CIRCUIT(circuit_t *x)
{
tor_assert(x->magic == OR_CIRCUIT_MAGIC);
//return (or_circuit_t*) (((char*)x) - STRUCT_OFFSET(or_circuit_t, _base));
return DOWNCAST(or_circuit_t, x);
}
-extern INLINE origin_circuit_t *TO_ORIGIN_CIRCUIT(circuit_t *x)
+static INLINE origin_circuit_t *TO_ORIGIN_CIRCUIT(circuit_t *x)
{
tor_assert(x->magic == ORIGIN_CIRCUIT_MAGIC);
//return (origin_circuit_t*)