Ticket #125: eresi_vectos_amd64.patch

File eresi_vectos_amd64.patch, 1.5 kB (added by Trundle, 14 months ago)

Patch which corrects the casts

  • libelfsh/vectors_register.c

     
    2727  dim    = alloca(sizeof(u_int) * 4); 
    2828  dim[0] = hostype; 
    2929  dim[1] = exectype; 
    30   aspect_vectors_insert(mem, dim, (int) fct); 
     30  aspect_vectors_insert(mem, dim, (unsigned long) fct); 
    3131  PROFILER_ROUT(__FILE__, __FUNCTION__, __LINE__, 0); 
    3232} 
    3333 
     
    4848  dim    = alloca(sizeof(u_int) * 4); 
    4949  dim[0] = hostype; 
    5050  dim[1] = exectype; 
    51   aspect_vectors_insert(mem, dim, (int) fct); 
     51  aspect_vectors_insert(mem, dim, (unsigned long) fct); 
    5252  PROFILER_ROUT(__FILE__, __FUNCTION__, __LINE__, 0); 
    5353} 
    5454 
     
    6969  dim    = alloca(sizeof(u_int) * 3); 
    7070  dim[0] = ostype; 
    7171  dim[1] = devicetype; 
    72   aspect_vectors_insert(mem, dim, (int) fct); 
     72  aspect_vectors_insert(mem, dim, (unsigned long) fct); 
    7373  PROFILER_ROUT(__FILE__, __FUNCTION__, __LINE__, 0); 
    7474} 
    7575 
     
    9090  dim    = alloca(sizeof(u_int) * 3); 
    9191  dim[0] = ostype; 
    9292  dim[1] = devicetype; 
    93   aspect_vectors_insert(mem, dim, (int) fct); 
     93  aspect_vectors_insert(mem, dim, (unsigned long) fct); 
    9494  PROFILER_ROUT(__FILE__, __FUNCTION__, __LINE__, 0); 
    9595} 
    9696 
     
    112112  dim    = alloca(sizeof(u_int) * 3); 
    113113  dim[0] = ostype; 
    114114  dim[1] = devicetype; 
    115   aspect_vectors_insert(mem, dim, (int) fct);   
     115  aspect_vectors_insert(mem, dim, (unsigned long) fct);   
    116116  PROFILER_ROUT(__FILE__, __FUNCTION__, __LINE__, 0); 
    117117} 
    118118