From: Po Lu Date: Mon, 20 May 2024 01:10:57 +0000 (+0800) Subject: ; Stylistic adjustments to sfnt.c X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8c246612804c020d05a63e9e0127ec75653db244;p=emacs.git ; Stylistic adjustments to sfnt.c * src/sfnt.c (sfnt_map_table, sfnt_read_table): Adapt to coding style of another project using this module. (cherry picked from commit a1b24ebc83e3df67d2e12870b4bea941b21cebda) --- diff --git a/src/sfnt.c b/src/sfnt.c index 8b7392b3af2..507f2d40e6f 100644 --- a/src/sfnt.c +++ b/src/sfnt.c @@ -14085,10 +14085,11 @@ sfnt_map_table (int fd, struct sfnt_offset_subtable *subtable, struct sfnt_table_directory *directory; size_t offset, page, map_offset; void *data; + int i; /* Find the table in the directory. */ - for (int i = 0; ; i++) + for (i = 0; ; i++) { if (! (i < subtable->num_tables)) return 1; @@ -14148,10 +14149,11 @@ sfnt_read_table (int fd, struct sfnt_offset_subtable *subtable, { struct sfnt_table_directory *directory; void *data; + int i; /* Find the table in the directory. */ - for (int i = 0; ; i++) + for (i = 0; ; i++) { if (! (i < subtable->num_tables)) return NULL;