FreeCalypso > hg > freecalypso-tools
diff target-utils/libtiffs/basicfind.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/basicfind.c Wed Oct 26 15:28:29 2016 +0000 +++ b/target-utils/libtiffs/basicfind.c Wed Oct 26 15:52:14 2016 +0000 @@ -14,7 +14,7 @@ struct inode *irec; for (ino = start; ino != 0xFFFF; ino = irec->sibling) { - irec = mpffs_active_index + ino; + irec = tiffs_active_index + ino; if (!irec->type) continue; if (!strcmp(inode_to_dataptr(irec), seekname)) @@ -23,20 +23,20 @@ return(0); } -mpffs_pathname_to_inode(pathname) +tiffs_pathname_to_inode(pathname) char *pathname; { int ino, stat; struct inode *irec; char *cur, *next; - stat = mpffs_init(); + stat = tiffs_init(); if (stat < 0) return(stat); cur = pathname; if (*cur == '/') cur++; - for (ino = mpffs_root_ino; cur; cur = next) { + for (ino = tiffs_root_ino; cur; cur = next) { if (!*cur) break; next = index(cur, '/'); @@ -46,7 +46,7 @@ } if (next) *next++ = '\0'; - irec = mpffs_active_index + ino; + irec = tiffs_active_index + ino; if (irec->type != OBJTYPE_DIR) { printf("Error: non-terminal non-directory\n"); if (next)