MSVC build issue: it can't tell that tor_assert(0) aborts.

This commit is contained in:
Nick Mathewson
2012-05-14 13:07:27 -04:00
parent 43e15300ba
commit d8de831932
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -778,7 +778,8 @@ create_unix_sockaddr(const char *listenaddress, char **readable_address,
"Unix domain sockets not supported, yet we tried to create one.");
*len_out = 0;
tor_assert(0);
};
return NULL;
}
#endif /* HAVE_SYS_UN_H */
/** Warn that an accept or a connect has failed because we're running up
+3 -1
View File
@@ -1463,8 +1463,10 @@ networkstatus_get_latest_consensus_by_flavor(consensus_flavor_t f)
return current_ns_consensus;
else if (f == FLAV_MICRODESC)
return current_md_consensus;
else
else {
tor_assert(0);
return NULL;
}
}
/** Return the most recent consensus that we have downloaded, or NULL if it is