]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
fixed compilation warrnings on Ubuntu , XenServer
authorAdrian Chiris <adrianc@mellanox.com>
Mon, 7 Apr 2014 08:19:46 +0000 (11:19 +0300)
committerAdrian Chiris <adrianc@mellanox.com>
Mon, 7 Apr 2014 08:19:46 +0000 (11:19 +0300)
mstdump/crd_lib/crdump.c
mtcr_ul/mtcr_ib_ofed.c

index 0285eddf0f6f569e0cc2652e0d7f08c419507984..0ed72cce526cf1a840da9323c41d207ddbbe4fbe 100755 (executable)
@@ -130,7 +130,7 @@ static int crd_update_csv_path(IN OUT char *csv_file_path);
 
 static int crd_count_blocks(IN char *csv_file_path, OUT u_int32_t *block_count, u_int8_t read_single_dword);
 
-#if !defined(__WIN__)
+#if !defined(__WIN__) && !defined(MST_UL)
 static char *crd_trim(char *s);
 
 static char *crd_rtrim(char *s);
@@ -566,7 +566,7 @@ static int crd_get_exec_name_from_path(IN char *str, OUT char *exec_name) {
 #endif 
 
 
-#if !defined(__WIN__)
+#if !defined(__WIN__) && !defined(MST_UL)
 static char *crd_ltrim(char *s) {
     while(isspace(*s)){
         s++;
index df06209aa351eb31c8daf4561e57980c33493727..da853970e00d7b4ae052f9dcbe45cd5c8da4f611 100644 (file)
@@ -427,7 +427,8 @@ int process_dynamic_linking(ibvs_mad *ivm, int mad_init)
         }
     }
     if (!ivm->dl_handle) {
-        IBERROR((dlerror()));
+        const char* errstr = dlerror();
+        IBERROR(("%s", errstr));
         //free(ivm);
         return -1;