changeset 674:135de08c5d74

loadtools/flutil.c: build_flashw_hex_string() no longer needed
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 08 Mar 2020 04:18:30 +0000
parents f67e5ad30324
children 8b1e86dcc3ac
files loadtools/flutil.c
diffstat 1 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/loadtools/flutil.c	Sun Mar 08 04:16:31 2020 +0000
+++ b/loadtools/flutil.c	Sun Mar 08 04:18:30 2020 +0000
@@ -109,21 +109,3 @@
 	*endp = sp;
 	return(0);
 }
-
-build_flashw_hex_string(bin, strbuf, nwords, m0src)
-	u_char *bin;
-	char *strbuf;
-	int nwords, m0src;
-{
-	int i;
-	u_char *dp;
-	char *s;
-
-	for (dp = bin, s = strbuf, i = 0; i < nwords; dp += 2, s += 4, i++) {
-		if (m0src)
-			sprintf(s, "%02X%02X", dp[0], dp[1]);
-		else
-			sprintf(s, "%02X%02X", dp[1], dp[0]);
-	}
-	*s = '\0';
-}