# HG changeset patch
# User Mychaela Falconia <falcon@freecalypso.org>
# Date 1726965395 0
# Node ID 5595293e4f297a863e92f484d446d188c31d2c66
# Parent  0daaae66b3f693d74653714c5de8ee6780f9f97c
gsmx-to-tw5a utility: use emit_hex_frame() in libtest

diff -r 0daaae66b3f6 -r 5595293e4f29 miscutil/gsmx-to-tw5a.c
--- 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;