]> git.eshelyaron.com Git - emacs.git/commitdiff
; Stylistic adjustments to sfnt.c
authorPo Lu <luangruo@yahoo.com>
Mon, 20 May 2024 01:10:57 +0000 (09:10 +0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 23 May 2024 07:43:33 +0000 (09:43 +0200)
* src/sfnt.c (sfnt_map_table, sfnt_read_table): Adapt to coding
style of another project using this module.

(cherry picked from commit a1b24ebc83e3df67d2e12870b4bea941b21cebda)

src/sfnt.c

index 8b7392b3af2a691dfc4abb0d06df527244fd9392..507f2d40e6fd85c5f9f106b3337e7c0b5060736a 100644 (file)
@@ -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;