[liblouis-liblouisxml] [liblouis] r665 committed - Removing some warnings from compileTranslationTable.c

  • From: liblouis@xxxxxxxxxxxxxx
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Fri, 01 Jun 2012 21:22:52 +0000

Revision: 665
Author:   john.boyer@xxxxxxxxxxxxxxxxx
Date:     Fri Jun  1 14:22:42 2012
Log:      Removing some warnings from compileTranslationTable.c
http://code.google.com/p/liblouis/source/detail?r=665

Modified:
 /trunk/liblouis/compileTranslationTable.c

=======================================
--- /trunk/liblouis/compileTranslationTable.c   Wed May 30 10:00:22 2012
+++ /trunk/liblouis/compileTranslationTable.c   Fri Jun  1 14:22:42 2012
@@ -4434,7 +4434,7 @@
     return NULL;
   strcpy (trialPath, tablePath);
   strcat (trialPath, tableName);
-  if (tableFile = fopen (trialPath, "rb"))
+  if ((tableFile = fopen (trialPath, "rb")))
     return tableFile;
   pathEnd[0] = DIR_SEP;
   pathEnd[1] = 0;
@@ -4455,7 +4455,7 @@
            strcpy (trialPath, pathList);
            strcat (trialPath, pathEnd);
            strcat (trialPath, tableName);
-           if (tableFile = fopen (trialPath, "rb"))
+           if ((tableFile = fopen (trialPath, "rb")))
              break;
          }
        else
@@ -4465,7 +4465,7 @@
            strcat (trialPath, pathEnd);
            strcat (trialPath, tableName);
            currentListPos = k + 1;
-           if (tableFile = fopen (trialPath, "rb"))
+           if ((tableFile = fopen (trialPath, "rb")))
              break;
            while (currentListPos < listLength)
              {
@@ -4477,7 +4477,7 @@
                trialPath[k - currentListPos] = 0;
                strcat (trialPath, pathEnd);
                strcat (trialPath, tableName);
-               if (tableFile = fopen (trialPath, "rb"))
+               if ((tableFile = fopen (trialPath, "rb")))
                  currentListPos = k + 1;
                break;
              }
@@ -4488,7 +4488,7 @@
     return tableFile;
   /* See if table in current directory or on a path in
    * the table name*/
-  if (tableFile = fopen (tableName, "rb"))
+  if ((tableFile = fopen (tableName, "rb")))
     return tableFile;
 /* See if table on dataPath. */
   pathList = lou_getDataPath ();
@@ -4502,7 +4502,7 @@
       strcat (trialPath, "liblouis/tables/");
 #endif
       strcat (trialPath, tableName);
-      if (tableFile = fopen (trialPath, "rb"))
+      if ((tableFile = fopen (trialPath, "rb")))
        return tableFile;
     }
   /* See if table on installed or program path. */
@@ -4514,7 +4514,7 @@
   strcat (trialPath, pathEnd);
 #endif
   strcat (trialPath, tableName);
-  if (tableFile = fopen (trialPath, "rb"))
+  if ((tableFile = fopen (trialPath, "rb")))
     return tableFile;
   return NULL;
 }
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts:

  • » [liblouis-liblouisxml] [liblouis] r665 committed - Removing some warnings from compileTranslationTable.c - liblouis