diff target-utils/libtiffs/findfile.c @ 60:87cb03b35f77

target-utils: long-overdue s/mpffs/tiffs/ and s/MPFFS/TIFFS/ rename
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 26 Oct 2016 15:52:14 +0000
parents e7502631a0f9
children
line wrap: on
line diff
--- a/target-utils/libtiffs/findfile.c	Wed Oct 26 15:28:29 2016 +0000
+++ b/target-utils/libtiffs/findfile.c	Wed Oct 26 15:52:14 2016 +0000
@@ -7,7 +7,7 @@
 static u8 *
 find_endofchunk(ino)
 {
-	struct inode *irec = mpffs_active_index + ino;
+	struct inode *irec = tiffs_active_index + ino;
 	u8 *p;
 	int i;
 
@@ -23,7 +23,7 @@
 	return(p);	/* XXX */
 }
 
-mpffs_find_file(pathname, startret, sizeret, continue_ret)
+tiffs_find_file(pathname, startret, sizeret, continue_ret)
 	char *pathname;
 	u8 **startret;
 	size_t *sizeret;
@@ -34,10 +34,10 @@
 	u8 *start, *end;
 	int size;
 
-	ino = mpffs_pathname_to_inode(pathname);
+	ino = tiffs_pathname_to_inode(pathname);
 	if (ino <= 0)
 		return(-1);
-	irec = mpffs_active_index + ino;
+	irec = tiffs_active_index + ino;
 	if (irec->type != OBJTYPE_FILE) {
 		printf("Error: %s is not a regular file\n", pathname);
 		return(-1);
@@ -60,7 +60,7 @@
 	return(0);
 }
 
-mpffs_get_segment(ino, startret, sizeret, continue_ret)
+tiffs_get_segment(ino, startret, sizeret, continue_ret)
 	int ino;
 	u8 **startret;
 	size_t *sizeret;
@@ -72,7 +72,7 @@
 	int size;
 
 	for (;;) {
-		irec = mpffs_active_index + ino;
+		irec = tiffs_active_index + ino;
 		if (irec->type)
 			break;
 		if (irec->sibling == 0xFFFF) {