]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
r5787: updated to flint 2768
authorMichael S. Tsirkin <mst@mellanox.co.il>
Mon, 13 Mar 2006 17:54:34 +0000 (17:54 +0000)
committerMichael S. Tsirkin <mst@mellanox.co.il>
Mon, 13 Mar 2006 17:54:34 +0000 (17:54 +0000)
flint.cpp

index 09e6d9d303192c94d337164fe7a8dff638ebfe50..9c52787f08dd4626ed25ebc1e9c3dce67999dbd3 100644 (file)
--- a/flint.cpp
+++ b/flint.cpp
@@ -32,7 +32,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  * SOFTWARE.
  *
- *  Version: $Id: flint.cpp 2747 2006-01-17 16:46:17Z orenk $
+ *  Version: $Id: flint.cpp 2768 2006-03-09 12:57:05Z orenk $
  *
  */
 
@@ -133,7 +133,7 @@ char* _versionID = _VFSTR( VERSION_ID ) ;
 char* _versionID = "VERSION_ID_HERE";
 #endif
 
-char* _svnID     = "$Revision: 2747 $";
+char* _svnID     = "$Revision: 2768 $";
 
 #ifndef __be32_to_cpu
     #define __be32_to_cpu(x) ntohl(x)
@@ -5650,13 +5650,6 @@ int main(int ac, char *av[])
 
     Operations            ops;
 
-    FBase*      fbase = 0 /* Suppress gcc warning */;
-    char*       cmdTarget = 0 /* Suppress gcc warning */;
-    char*       cmdAccess = 0 /* Suppress gcc warning */;
-
-    // Output file
-    FILE*  fh = 0 /* Suppress gcc warning */;
-
     //
     // Map termination signal handlers
     //
@@ -5842,6 +5835,11 @@ int main(int ac, char *av[])
         rc = 1; goto done;
     }
 
+
+    FBase*      fbase;
+    char*       cmdTarget;
+    char*       cmdAccess;
+
     if (device) {
         // Open the device
 
@@ -5986,7 +5984,7 @@ int main(int ac, char *av[])
                 if (!ops.patchGUIDs(fim, 
                                     user_guids, 
                                     flashInfo.imageOk ? flashInfo.guids : NULL, 
-                                    isatty(0) != 0)) {
+                                    true)) {
                     rc =  1; goto done;
                 }
             } else {
@@ -6134,6 +6132,9 @@ int main(int ac, char *av[])
         }
         data = new u_int8_t[length];
 
+        // Output file
+        FILE*  fh;
+
         if (i + 2 == ac)
             to_file = true;