diff simtool/dumpdir.c @ 5:ce189c97b7b1

check_simresp_all_blank() factored out into libcommon
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 11 Feb 2021 23:31:51 +0000
parents 2071b28cd0c7
children 2c72709e0891
line wrap: on
line diff
--- a/simtool/dumpdir.c	Thu Feb 11 23:13:27 2021 +0000
+++ b/simtool/dumpdir.c	Thu Feb 11 23:31:51 2021 +0000
@@ -9,19 +9,6 @@
 #include "curfile.h"
 #include "file_id.h"
 
-static
-check_all_blank()
-{
-	u_char *dp, *endp;
-
-	dp = sim_resp_data;
-	endp = sim_resp_data + sim_resp_data_len;
-	while (dp < endp)
-		if (*dp++ != 0xFF)
-			return(0);
-	return(1);
-}
-
 static void
 dump_aid(tlv)
 	u_char *tlv;
@@ -144,7 +131,7 @@
 		rc = readrec_op(recno, 0x04, curfile_record_len);
 		if (rc < 0)
 			return(rc);
-		if (check_all_blank())
+		if (check_simresp_all_blank())
 			continue;
 		dump_record(recno);
 	}