changeset 540:5595293e4f29 default tip

gsmx-to-tw5a utility: use emit_hex_frame() in libtest
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 22 Sep 2024 00:36:35 +0000
parents 0daaae66b3f6
children
files miscutil/gsmx-to-tw5a.c
diffstat 1 files changed, 1 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/miscutil/gsmx-to-tw5a.c	Sun Sep 22 00:21:16 2024 +0000
+++ b/miscutil/gsmx-to-tw5a.c	Sun Sep 22 00:36:35 2024 +0000
@@ -14,19 +14,7 @@
 #include "../libgsmfr2/tw_gsmfr.h"
 #include "../libgsmefr/gsm_efr.h"
 #include "../libtest/binreader.h"
-
-static void
-emit_hex_frame(outf, frame, nbytes)
-	FILE *outf;
-	uint8_t *frame;
-	unsigned nbytes;
-{
-	unsigned n;
-
-	for (n = 0; n < nbytes; n++)
-		fprintf(outf, "%02X", frame[n]);
-	putc('\n', outf);
-}
+#include "../libtest/tw5writer.h"
 
 main(argc, argv)
 	char **argv;