char *one, char *two, char *three, char *four)
{
BuxtonString value;
- BuxtonKey key;
+ _cleanup_buxton_key_ BuxtonKey key;
BuxtonData set;
bool ret = false;
free(layer);
}
- free(key);
return ret;
}
r->type = FLOAT;
break;
case DOUBLE:
- r->store.d_double = *(double *)p;
+ memcpy(&r->store.d_double, p, sizeof(double));
r->type = DOUBLE;
break;
case BOOLEAN:
bool cli_get_value(BuxtonControl *control, BuxtonDataType type,
char *one, char *two, char *three, __attribute__((unused)) char * four)
{
- BuxtonKey key;
+ _cleanup_buxton_key_ BuxtonKey key;
BuxtonData get;
_cleanup_free_ char *prefix = NULL;
_cleanup_free_ char *group = NULL;
char *one, char *two, char *three,
__attribute__((unused)) char *four)
{
- BuxtonKey key;
+ _cleanup_buxton_key_ BuxtonKey key;
key = buxton_key_create(two, three, one, type);