cygwin_gt_pch_get_address (size_t sz, int fd)
{
void *base;
- off_t p = lseek(fd, 0, SEEK_CUR);
+ off_t p = lseek (fd, 0, SEEK_CUR);
if (p == (off_t) -1)
- fatal_error (input_location, "can%'t get position in PCH file: %m");
+ fatal_error (input_location, "cannot get position in PCH file: %m");
/* Cygwin requires that the underlying file be at least
as large as the requested mapping. */
if ((size_t) p < sz)
- {
- if ( ftruncate (fd, sz) == -1 )
- fatal_error (input_location, "can%'t extend PCH file: %m");
- }
+ {
+ if (ftruncate (fd, sz) == -1)
+ fatal_error (input_location, "cannot extend PCH file: %m");
+ }
base = mmap (NULL, sz, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
else
munmap (base, sz);
- if (lseek (fd, p, SEEK_SET) == (off_t) -1 )
- fatal_error (input_location, "can%'t set position in PCH file: %m");
+ if (lseek (fd, p, SEEK_SET) == (off_t) -1)
+ fatal_error (input_location, "cannot set position in PCH file: %m");
return base;
}