hv: use uint32_t replace "unsigned int"

Since it's typedef in "include/lib/types.h"

Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
Li, Fei1
2018-12-08 00:06:59 +08:00
committed by wenlingz
parent 8bafde9942
commit 473d871397
8 changed files with 13 additions and 13 deletions

View File

@@ -80,7 +80,7 @@ build_atomic_dec(atomic_dec32, "l", uint32_t)
build_atomic_dec(atomic_dec64, "q", uint64_t)
/**
* #define atomic_set32(P, V) (*(unsigned int *)(P) |= (V))
* #define atomic_set32(P, V) (*(uint32_t *)(P) |= (V))
*
* Parameters:
* uint32_t* p A pointer to memory area that stores source

View File

@@ -22,8 +22,8 @@ struct mem_pool {
};
/* APIs exposing memory allocation/deallocation abstractions */
void *malloc(unsigned int num_bytes);
void *calloc(unsigned int num_elements, unsigned int element_size);
void *malloc(uint32_t num_bytes);
void *calloc(uint32_t num_elements, uint32_t element_size);
void free(const void *ptr);
#endif /* MEM_MGT_H */