summaryrefslogtreecommitdiff
path: root/dbutil.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2005-09-05 15:16:10 +0000
committerMatt Johnston <matt@ucc.asn.au>2005-09-05 15:16:10 +0000
commit9079799ac76873412d3b2f9bd0a1dbbc740a358f (patch)
treeb8ae3fd07645b13080425acb2b3b379650ca4ac0 /dbutil.c
parentce2d6eecd9e95677018a4bfc369f8dca38e74e1e (diff)
downloaddropbear-9079799ac76873412d3b2f9bd0a1dbbc740a358f.tar.gz
* use own assertions which should get logged properly
Diffstat (limited to 'dbutil.c')
-rw-r--r--dbutil.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dbutil.c b/dbutil.c
index 45c720e..23e46cc 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -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) {