summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-09-16 05:41:49 +0000
committerRoger Dingledine <arma@torproject.org>2003-09-16 05:41:49 +0000
commit8b71b7338faeaedf60e40b335b865781106ad1a2 (patch)
tree8d377cc8a77134d9cfd39b7a0b2b72cf7e93852b /src/or/connection.c
parent9c6343fdf8ab6e8241c613c54bb3bd9cb6c78a91 (diff)
downloadtor-8b71b7338faeaedf60e40b335b865781106ad1a2.tar.gz
tor-8b71b7338faeaedf60e40b335b865781106ad1a2.zip
clean up exported api's
svn:r461
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index d071910a3f..a6505931a3 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -765,26 +765,6 @@ int connection_finished_flushing(connection_t *conn) {
}
}
-void
-cell_pack(char *dest, const cell_t *src)
-{
- *(uint16_t*)dest = htons(src->aci);
- *(uint8_t*)(dest+2) = src->command;
- *(uint8_t*)(dest+3) = src->length;
- *(uint32_t*)(dest+4) = 0; /* Reserved */
- memcpy(dest+8, src->payload, CELL_PAYLOAD_SIZE);
-}
-
-void
-cell_unpack(cell_t *dest, const char *src)
-{
- dest->aci = ntohs(*(uint16_t*)(src));
- dest->command = *(uint8_t*)(src+2);
- dest->length = *(uint8_t*)(src+3);
- dest->seq = ntohl(*(uint32_t*)(src+4));
- memcpy(dest->payload, src+8, CELL_PAYLOAD_SIZE);
-}
-
/*
Local Variables:
mode:c