diff options
author | Matt Johnston <matt@ucc.asn.au> | 2005-09-05 15:16:10 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2005-09-05 15:16:10 +0000 |
commit | 9079799ac76873412d3b2f9bd0a1dbbc740a358f (patch) | |
tree | b8ae3fd07645b13080425acb2b3b379650ca4ac0 /dbutil.c | |
parent | ce2d6eecd9e95677018a4bfc369f8dca38e74e1e (diff) | |
download | dropbear-9079799ac76873412d3b2f9bd0a1dbbc740a358f.tar.gz |
* use own assertions which should get logged properly
Diffstat (limited to 'dbutil.c')
-rw-r--r-- | dbutil.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -110,6 +110,10 @@ static void generic_dropbear_exit(int exitcode, const char* format, exit(exitcode); } +void fail_assert(const char* expr, const char* file, int line) { + dropbear_exit("failed assertion (%s:%d): `%s'", file, line, expr); +} + static void generic_dropbear_log(int UNUSED(priority), const char* format, va_list param) { |