summaryrefslogtreecommitdiff
path: root/src/or/onion.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-12-14 00:12:02 +0000
committerRoger Dingledine <arma@torproject.org>2003-12-14 00:12:02 +0000
commit29adf0468315223bcf44d7669f61bed98cb33f24 (patch)
treef335edfcb7f24332dcfce74677eca30627965686 /src/or/onion.c
parent444798dfb91067e1a3ced3a28b3731ac715db0c5 (diff)
downloadtor-29adf0468315223bcf44d7669f61bed98cb33f24.tar.gz
tor-29adf0468315223bcf44d7669f61bed98cb33f24.zip
more general cleanup
svn:r915
Diffstat (limited to 'src/or/onion.c')
-rw-r--r--src/or/onion.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/or/onion.c b/src/or/onion.c
index aba8cd6de5..b521d21308 100644
--- a/src/or/onion.c
+++ b/src/or/onion.c
@@ -152,38 +152,6 @@ int onionskin_answer(circuit_t *circ, unsigned char *payload, unsigned char *key
return 0;
}
-#if 0
-static char **parse_nickname_list(char *list, int *num) {
- char **out;
- char *start,*end;
- int i;
-
- while(isspace(*list)) list++;
-
- i=0, start = list;
- while(*start) {
- while(*start && !isspace(*start)) start++;
- i++;
- while(isspace(*start)) start++;
- }
-
- out = tor_malloc(i * sizeof(char *));
-
- i=0, start=list;
- while(*start) {
- end=start; while(*end && !isspace(*end)) end++;
- out[i] = tor_malloc(MAX_NICKNAME_LEN);
- strncpy(out[i],start,end-start);
- out[i][end-start] = 0; /* null terminate it */
- i++;
- while(isspace(*end)) end++;
- start = end;
- }
- *num = i;
- return out;
-}
-#endif
-
static void add_nickname_list_to_smartlist(smartlist_t *sl, char *list) {
char *start,*end;
char nick[MAX_NICKNAME_LEN];