Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=cfa23a4a56c850403467b296ec6d911182e08d3f
commit cfa23a4a56c850403467b296ec6d911182e08d3f Author: James Buren <[email protected]> Date: Tue Aug 14 16:27:04 2012 -0500 add some asserts to functions that did not have any diff --git a/end.c b/end.c index cd4eb17..4543d10 100644 --- a/end.c +++ b/end.c @@ -8,7 +8,7 @@ static enum order end_run(struct database *db) { - ASSERT_ARGS(db == 0,ORDER_ERRO); + ASSERT_ARGS(db == 0,ORDER_ERROR); enum order order = ORDER_NONE; diff --git a/utility.c b/utility.c index ddaf9ec..989de12 100644 --- a/utility.c +++ b/utility.c @@ -12,6 +12,7 @@ static FILE *logfile = 0; static inline bool is_ide_disk(const struct stat *st) { + ASSERT_ARGS(st == 0,false); switch(major(st->st_rdev)) { case IDE0_MAJOR: @@ -32,6 +33,7 @@ static inline bool is_ide_disk(const struct stat *st) static inline bool is_scsi_disk(const struct stat *st) { + ASSERT_ARGS(st == 0,false); switch(major(st->st_rdev)) { case SCSI_DISK0_MAJOR: @@ -58,11 +60,13 @@ static inline bool is_scsi_disk(const struct stat *st) static inline bool is_virtio_disk(const struct stat *st) { + ASSERT_ARGS(st == 0,false); return (major(st->st_rdev) == VIRTBLK_MAJOR); } static inline bool is_mdadm_device(const struct stat *st) { + ASSERT_ARGS(st == 0,false); return (major(st->st_rdev) == MD_MAJOR); } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
