diff libcommon/hexread.c @ 129:94d87d05f6c5

libcommon: initial support for file search
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 20 Feb 2021 21:00:24 +0000
parents f7145c77b7fb
children a1aa8ee2da85
line wrap: on
line diff
--- a/libcommon/hexread.c	Sat Feb 20 20:10:18 2021 +0000
+++ b/libcommon/hexread.c	Sat Feb 20 21:00:24 2021 +0000
@@ -5,11 +5,11 @@
 
 #include <sys/types.h>
 #include <ctype.h>
-#include <string.h>
-#include <strings.h>
 #include <stdio.h>
 #include <stdlib.h>
 
+extern FILE *open_script_input_file();
+
 read_hex_data_file(filename, databuf)
 	char *filename;
 	u_char *databuf;
@@ -18,7 +18,7 @@
 	unsigned count;
 	int c, c2;
 
-	inf = fopen(filename, "r");
+	inf = open_script_input_file(filename);
 	if (!inf) {
 		perror(filename);
 		return(-1);