diff options
author | Roger Dingledine <arma@torproject.org> | 2002-08-24 04:59:21 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2002-08-24 04:59:21 +0000 |
commit | 3a7f3ba3480c83dbfda27b945ee2f98e6ee99832 (patch) | |
tree | 3490c8561a6ad1759b8d47ce14cac343996723a2 /src/or/routers.c | |
parent | d8c0d21b4964e9c46d74d00a880e89a1d5814d91 (diff) | |
download | tor-3a7f3ba3480c83dbfda27b945ee2f98e6ee99832.tar.gz tor-3a7f3ba3480c83dbfda27b945ee2f98e6ee99832.zip |
cleanup: don't use size_t when you mean int
size_t is what you get back from sizeof(). no more, no less.
svn:r80
Diffstat (limited to 'src/or/routers.c')
-rw-r--r-- | src/or/routers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/routers.c b/src/or/routers.c index 53d34ac1ea..6430ea0894 100644 --- a/src/or/routers.c +++ b/src/or/routers.c @@ -74,7 +74,7 @@ void delete_routerlist(routerinfo_t *list) /* create a NULL-terminated array of pointers pointing to elements of a router list */ /* this is done in two passes through the list - inefficient but irrelevant as this is * only done once when op/or start up */ -routerinfo_t **make_rarray(routerinfo_t* list, size_t *len) +routerinfo_t **make_rarray(routerinfo_t* list, int *len) { routerinfo_t *tmp=NULL; int listlen = 0; @@ -116,7 +116,7 @@ routerinfo_t **make_rarray(routerinfo_t* list, size_t *len) } /* load the router list */ -routerinfo_t **getrouters(char *routerfile, size_t *lenp, uint16_t or_listenport) +routerinfo_t **getrouters(char *routerfile, int *len, uint16_t or_listenport) { int retval = 0; char *retp = NULL; @@ -128,7 +128,7 @@ routerinfo_t **getrouters(char *routerfile, size_t *lenp, uint16_t or_listenport char *errtest; /* detecting errors in strtoul() calls */ struct hostent *rent; - assert(routerfile && lenp); + assert(routerfile && len); if (strcspn(routerfile,CONFIG_LEGAL_FILENAME_CHARACTERS) != 0) { log(LOG_ERR,"Filename %s contains illegal characters.",routerfile); @@ -414,6 +414,6 @@ routerinfo_t **getrouters(char *routerfile, size_t *lenp, uint16_t or_listenport } fclose(rf); - return make_rarray(routerlist, lenp); + return make_rarray(routerlist, len); } |