Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=2f8647154d3da218b72496096dac44843d829c09

commit 2f8647154d3da218b72496096dac44843d829c09
Author: James Buren <[email protected]>
Date:   Tue Aug 14 16:23:20 2012 -0500

replace asserts in begin and end modules

diff --git a/begin.c b/begin.c
index 16f82c2..42a35af 100644
--- a/begin.c
+++ b/begin.c
@@ -8,7 +8,7 @@

static enum order begin_run(struct database *db)
{
-  assert(db != 0);
+  ASSERT_ARGS(db == 0,ORDER_ERROR);

#ifdef NEWT
int tb_width = 0;
diff --git a/end.c b/end.c
index 6037103..cd4eb17 100644
--- a/end.c
+++ b/end.c
@@ -8,7 +8,7 @@

static enum order end_run(struct database *db)
{
-  assert(db != 0);
+  ASSERT_ARGS(db == 0,ORDER_ERRO);

enum order order = ORDER_NONE;
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to