~sircmpwn/koio

0f26a322bb6a145e023c742c172c229c84625e69 — Drew DeVault 4 years ago 48e876a
Invoke ko_del_file correctly
1 files changed, 1 insertions(+), 2 deletions(-)

M tool/main.c
M tool/main.c => tool/main.c +1 -2
@@ 128,8 128,7 @@ int main(int argc, char **argv) {

	fprintf(out, "void %s() {\n", deinit);
	for (int i = 0; i < argc - optind; ++i) {
		fprintf(out, "	ko_del_file(files[%d].path, "
				"files[%d].data, files[%d].len);\n", i, i, i);
		fprintf(out, "	ko_del_file(files[%d].path);\n", i);
	}
	fprintf(out, "}\n");