Replaced ifdef with if, as salvopitru suggested
This commit is contained in:
parent
cbe4513bf4
commit
20bf23cf06
|
@ -1168,7 +1168,7 @@ cfs_write(int fd, const void *buf, unsigned size)
|
||||||
file = fdp->file;
|
file = fdp->file;
|
||||||
|
|
||||||
/* Attempt to extend the file if we try to write past the end. */
|
/* Attempt to extend the file if we try to write past the end. */
|
||||||
#ifdef COFFEE_IO_SEMANTICS
|
#if COFFEE_IO_SEMANTICS
|
||||||
if(!(fdp->io_flags & CFS_COFFEE_IO_FIRM_SIZE)) {
|
if(!(fdp->io_flags & CFS_COFFEE_IO_FIRM_SIZE)) {
|
||||||
#endif
|
#endif
|
||||||
while(size + fdp->offset + sizeof(struct file_header) >
|
while(size + fdp->offset + sizeof(struct file_header) >
|
||||||
|
@ -1179,7 +1179,7 @@ cfs_write(int fd, const void *buf, unsigned size)
|
||||||
file = fdp->file;
|
file = fdp->file;
|
||||||
PRINTF("Extended the file at page %u\n", (unsigned)file->page);
|
PRINTF("Extended the file at page %u\n", (unsigned)file->page);
|
||||||
}
|
}
|
||||||
#ifdef COFFEE_IO_SEMANTICS
|
#if COFFEE_IO_SEMANTICS
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue