fieldset to support 32-bit systems
This commit is contained in:
parent
161ba170d9
commit
9d1b5210b0
@ -38,7 +38,7 @@ static inline void fs_add_word(fieldset_t *fs, const char *name, int type,
|
|||||||
f->type = type;
|
f->type = type;
|
||||||
f->name = name;
|
f->name = name;
|
||||||
f->len = len;
|
f->len = len;
|
||||||
f->value = value;
|
f->value = (uint64_t) value;
|
||||||
f->free_ = free_;
|
f->free_ = free_;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ void fs_free(fieldset_t *fs)
|
|||||||
for (int i=0; i < fs->len; i++) {
|
for (int i=0; i < fs->len; i++) {
|
||||||
field_t *f = &(fs->fields[i]);
|
field_t *f = &(fs->fields[i]);
|
||||||
if (f->free_) {
|
if (f->free_) {
|
||||||
free(f->value);
|
free((void*) f->value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(fs);
|
free(fs);
|
||||||
|
@ -41,7 +41,7 @@ typedef struct field {
|
|||||||
int type;
|
int type;
|
||||||
int free_;
|
int free_;
|
||||||
size_t len;
|
size_t len;
|
||||||
void *value;
|
uint64_t value;
|
||||||
} field_t;
|
} field_t;
|
||||||
|
|
||||||
// data structure that is populated by the probe module
|
// data structure that is populated by the probe module
|
||||||
|
Loading…
Reference in New Issue
Block a user