diff target-utils/libtiffs/init.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 c10a65f7563e
line wrap: on
line diff
--- a/target-utils/libtiffs/init.c	Wed Oct 26 15:28:29 2016 +0000
+++ b/target-utils/libtiffs/init.c	Wed Oct 26 15:52:14 2016 +0000
@@ -15,20 +15,20 @@
 	u8 *sector_ptr;
 	int i;
 
-	printf("Looking for MPFFS active index block\n");
-	sector_addr = mpffs_base_addr;
-	for (i = 0; i < mpffs_nsectors; i++) {
+	printf("Looking for TIFFS active index block\n");
+	sector_addr = tiffs_base_addr;
+	for (i = 0; i < tiffs_nsectors; i++) {
 		sector_ptr = (u8 *) sector_addr;
 		if (!bcmp(sector_ptr, ffs_sector_signature, 6) &&
 		    sector_ptr[8] == 0xAB) {
 			printf("Found at %08X\n", sector_addr);
-			mpffs_active_index = (struct inode *) sector_ptr;
+			tiffs_active_index = (struct inode *) sector_ptr;
 			return(0);
 		}
-		sector_addr += mpffs_sector_size;
+		sector_addr += tiffs_sector_size;
 	}
 	printf("Error: Not found in any of the %d candidate sectors\n",
-		mpffs_nsectors);
+		tiffs_nsectors);
 	return(-1);
 }
 
@@ -40,11 +40,11 @@
 
 	printf("Looking for the root inode\n");
 	for (ino = 1; ; ino++) {
-		if (ino >= mpffs_sector_size >> 4) {
+		if (ino >= tiffs_sector_size >> 4) {
 		    printf("Error: Hit end of sector, no root inode found\n");
 			return(-1);
 		}
-		irec = mpffs_active_index + ino;
+		irec = tiffs_active_index + ino;
 		if (!bcmp((u8 *) irec, blank_flash_line, 16)) {
 			printf("Error: Hit blank flash, no root inode found\n");
 			return(-1);
@@ -53,15 +53,15 @@
 			break;
 	}
 	printf("Found at inode #%x\n", ino);
-	mpffs_root_ino = ino;
+	tiffs_root_ino = ino;
 	return(0);
 }
 
-mpffs_init()
+tiffs_init()
 {
 	int stat;
 
-	if (mpffs_init_done)
+	if (tiffs_init_done)
 		return(0);
 	stat = find_indexblk();
 	if (stat < 0)
@@ -69,6 +69,6 @@
 	stat = find_rootino();
 	if (stat < 0)
 		return(stat);
-	mpffs_init_done = 1;
+	tiffs_init_done = 1;
 	return(0);
 }