minor spacing

This commit is contained in:
Ebrahim Byagowi 2020-04-30 23:14:54 +04:30
parent 09b9d63e56
commit 9fc774ab00
2 changed files with 8 additions and 8 deletions

View File

@ -526,7 +526,7 @@ _hb_mapped_file_destroy (void *file_)
#ifdef _PATH_RSRCFORKSPEC #ifdef _PATH_RSRCFORKSPEC
static int static int
_open_resource_fork(const char *file_name, hb_mapped_file_t *file) _open_resource_fork (const char *file_name, hb_mapped_file_t *file)
{ {
size_t name_len = strlen (file_name); size_t name_len = strlen (file_name);
size_t len = name_len + sizeof (_PATH_RSRCFORKSPEC); size_t len = name_len + sizeof (_PATH_RSRCFORKSPEC);
@ -536,7 +536,7 @@ _open_resource_fork(const char *file_name, hb_mapped_file_t *file)
strncpy (rsrc_name, file_name, name_len); strncpy (rsrc_name, file_name, name_len);
strncpy (rsrc_name + name_len, _PATH_RSRCFORKSPEC, strncpy (rsrc_name + name_len, _PATH_RSRCFORKSPEC,
sizeof (_PATH_RSRCFORKSPEC) - 1); sizeof (_PATH_RSRCFORKSPEC) - 1);
int fd = open (rsrc_name, O_RDONLY | O_BINARY, 0); int fd = open (rsrc_name, O_RDONLY | O_BINARY, 0);
free (rsrc_name); free (rsrc_name);

View File

@ -573,15 +573,15 @@ struct IndexSubtableArray
{ {
if (unlikely (!lookup[start].second->add_new_record (c, bitmap_size_context, &lookup, this, &start, &records))) if (unlikely (!lookup[start].second->add_new_record (c, bitmap_size_context, &lookup, this, &start, &records)))
{ {
// Discard any leftover pushes to the serializer from successful records. // Discard any leftover pushes to the serializer from successful records.
for (unsigned int i = 0; i < records.length; i++) for (unsigned int i = 0; i < records.length; i++)
c->serializer->pop_discard (); c->serializer->pop_discard ();
return_trace (false); return_trace (false);
} }
} }
// Workaround to ensure offset ordering is from least to greatest when /* Workaround to ensure offset ordering is from least to greatest when
// resolving links. * resolving links. */
hb_vector_t<hb_serialize_context_t::objidx_t> objidxs; hb_vector_t<hb_serialize_context_t::objidx_t> objidxs;
for (unsigned int i = 0; i < records.length; i++) for (unsigned int i = 0; i < records.length; i++)
objidxs.push (c->serializer->pop_pack ()); objidxs.push (c->serializer->pop_pack ());