papi: Use CMSG_SPACE for sizing ancillary buffer space
[vpp.git] / src / vppinfra / elf.c
index 7a74fad..f660195 100644 (file)
@@ -1357,7 +1357,7 @@ elf_read_file (elf_main_t * em, char *file_name)
       goto done;
     }
 
-  CLIB_MEM_UNPOISON (data, mmap_length);
+  clib_mem_unpoison (data, mmap_length);
 
   em->file_name = file_name;
 
@@ -1702,7 +1702,6 @@ layout_sections (elf_main_t * em)
        continue;
 
       s_lo = s_hi = 0;
-       /* *INDENT-OFF* */
        clib_bitmap_foreach (si, g->section_index_bitmap)  {
          u64 lo, hi;
 
@@ -1727,7 +1726,6 @@ layout_sections (elf_main_t * em)
                s_hi = hi;
            }
        }
-       /* *INDENT-ON* */
 
       if (n_sections == 0)
        continue;
@@ -1975,7 +1973,7 @@ elf_create_section_with_contents (elf_main_t * em,
   if ((p = hash_get_mem (em->section_by_name, section_name)))
     {
       s = vec_elt_at_index (em->sections, p[0]);
-      _vec_len (s->contents) = 0;
+      vec_set_len (s->contents, 0);
       c = s->contents;
     }
   else