diff options
author | Roger Dingledine <arma@torproject.org> | 2004-04-25 20:37:37 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-04-25 20:37:37 +0000 |
commit | 25d54257fb3e0da7a613a2e774e935d1b8b662df (patch) | |
tree | efb6b6c7312de01e60748775d098b6ca0dcbeee3 /src/or/config.c | |
parent | 37192bd25e82ce3885cc9ce01152fefefb9945c6 (diff) | |
download | tor-25d54257fb3e0da7a613a2e774e935d1b8b662df.tar.gz tor-25d54257fb3e0da7a613a2e774e935d1b8b662df.zip |
use tor_assert
remove obsolete BUF_OK macro
svn:r1697
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/config.c b/src/or/config.c index 824e5643cb..7793f8029e 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -25,7 +25,7 @@ static int config_assign(or_options_t *options, struct config_line_t *list); /* open configuration file for reading */ static FILE *config_open(const unsigned char *filename) { - assert(filename); + tor_assert(filename); if (strspn(filename,CONFIG_LEGAL_FILENAME_CHARACTERS) != strlen(filename)) { /* filename has illegal letters */ return NULL; @@ -35,7 +35,7 @@ static FILE *config_open(const unsigned char *filename) { /* close configuration file */ static int config_close(FILE *f) { - assert(f); + tor_assert(f); return fclose(f); } @@ -396,7 +396,7 @@ static int resolve_my_address(or_options_t *options) { log_fn(LOG_WARN,"Could not resolve Address %s. Failing.", options->Address); return -1; } - assert(rent->h_length == 4); + tor_assert(rent->h_length == 4); memcpy(&in.s_addr, rent->h_addr,rent->h_length); } if(!explicit_ip && is_internal_IP(htonl(in.s_addr))) { |