]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
fixed compilation issue when compiling under UEFI env
authorAdrian Chiris <adrianc@mellanox.com>
Fri, 18 Sep 2015 08:55:21 +0000 (11:55 +0300)
committerAdrian Chiris <adrianc@mellanox.com>
Fri, 18 Sep 2015 08:55:21 +0000 (11:55 +0300)
mlxfwops/lib/fs3_ops.cpp

index 88c9d3c8b2d2176df4ed89185f4751ad7856e286..f60cdb662485c2777c07923a4485ce3b7ef49a3a 100644 (file)
@@ -1084,7 +1084,7 @@ bool Fs3Operations::Fs3Burn(Fs3Operations &imageOps, ExtBurnParams& burnParams)
         // image vsd patch
         if (!burnParams.useImagePs && burnParams.vsdSpecified ) {
             // get image info section :
-            struct toc_info *imageInfoToc = NULL;
+            struct toc_info *imageInfoToc = (struct toc_info *)NULL;
             if (!imageOps.Fs3GetItocInfo(imageOps._fs3ImgInfo.tocArr, imageOps._fs3ImgInfo.numOfItocs, FS3_IMAGE_INFO, imageInfoToc)){
                 return errmsg(MLXFW_GET_SECT_ERR, "failed to get Image Info section.");
             }
@@ -1757,7 +1757,7 @@ bool Fs3Operations::Fs3GetNewSectionAddr(struct toc_info *curr_toc, u_int32_t &N
 
     if (failsafe_section) {// we assume dev_info is the only FS section.
         // get the two dev_info addresses (section is failsafe) according to the location of the mfg section
-        toc_info* toc = NULL;
+        toc_info* toc = (toc_info*) NULL;
         u_int32_t devInfoAddr1 = 0;
         u_int32_t devInfoAddr2 = 0;
 
@@ -1848,7 +1848,7 @@ bool Fs3Operations::Fs3ReburnItocSection(u_int32_t newSectionAddr,
 //add callback if we want info during section update
 bool  Fs3Operations::Fs3UpdateSection(void *new_info, fs3_section_t sect_type, bool is_sect_failsafe, CommandType cmd_type, PrintCallBack callBackFunc)
 {
-    struct toc_info *curr_toc = NULL;
+    struct toc_info *curr_toc = (struct toc_info *)NULL;
     std::vector<u_int8_t> newUidSection;
     u_int32_t newSectionAddr;
     const char *type_msg;