Merge pull request #31 from aflatter/signedness

Fix implicit conversion errors
This commit is contained in:
Michael Steil 2015-07-02 07:05:40 +02:00
commit df8d53a44f
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ void vmm_stat_free(void *vp);
* 'buf' should be at least fit 'MAX_VMM_STAT_TYPES' entries
*/
int vmm_stat_copy(struct vm *vm, int vcpu, int *num_stats, uint64_t *buf);
int vmm_stat_desc_copy(int index, char *buf, int buflen);
int vmm_stat_desc_copy(int index, char *buf, size_t buflen);
static void __inline
vmm_stat_array_incr(struct vm *vm, int vcpu, struct vmm_stat_type *vst,

View file

@ -112,7 +112,7 @@ vmm_stat_free(void *vp)
}
int
vmm_stat_desc_copy(int index, char *buf, int bufsize)
vmm_stat_desc_copy(int index, char *buf, size_t bufsize)
{
int i;
struct vmm_stat_type *vst;