From: Leandro Lucarella Date: Sun, 18 Apr 2004 20:06:16 +0000 (+0000) Subject: Cambio el nombre de la maldita variabla, espero que no hayan mas malentendidos :) X-Git-Tag: svn_import_r684~354 X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/commitdiff_plain/2fc4ee372f0fa46b11c7aeedfdae9e8fc113edbf Cambio el nombre de la maldita variabla, espero que no hayan mas malentendidos :) --- diff --git a/emufs/fsc.c b/emufs/fsc.c index d0d9124..05e29a8 100644 --- a/emufs/fsc.c +++ b/emufs/fsc.c @@ -359,7 +359,7 @@ EMUFS_BLOCK_ID emufs_fsc_buscar_lugar(EMUFS *emu, EMUFS_FREE reg_size, EMUFS_FRE /** Busca n lugares consecutivos devolviendo el id del primer bloque. */ EMUFS_BLOCK_ID emufs_fsc_buscar_n_lugares(EMUFS* efs, size_t n, - EMUFS_FREE reg_size, EMUFS_FREE *freespace, int* err) + EMUFS_FREE size, EMUFS_FREE *freespace, int* err) { FILE *f_fsc; EMUFS_FSC reg; @@ -389,7 +389,7 @@ EMUFS_BLOCK_ID emufs_fsc_buscar_n_lugares(EMUFS* efs, size_t n, *err = EMUFS_ERROR_FILE_READ; return EMUFS_NOT_FOUND; } - if (reg.freespace >= reg_size) { + if (reg.freespace >= size) { int found = 1; EMUFS_BLOCK_ID first_id = reg.marker; *freespace = reg.freespace; @@ -401,7 +401,7 @@ EMUFS_BLOCK_ID emufs_fsc_buscar_n_lugares(EMUFS* efs, size_t n, return EMUFS_NOT_FOUND; } /* no hay otro lugar consecutivo */ - if (reg.freespace < reg_size) { + if (reg.freespace < size) { found = 0; break; }