Merge pull request #179 from michalwy/librbd-compile-fixes
Small fixes needed to compile OCF in C++ environment (Ceph/librbd)
This commit is contained in:
commit
3abe91a5ae
4
env/posix/ocf_env.h
vendored
4
env/posix/ocf_env.h
vendored
@ -473,9 +473,9 @@ static inline long env_atomic64_inc_return(env_atomic64 *a)
|
|||||||
return __sync_add_and_fetch(&a->counter, 1);
|
return __sync_add_and_fetch(&a->counter, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline long env_atomic64_cmpxchg(env_atomic64 *a, long old, long new)
|
static inline long env_atomic64_cmpxchg(env_atomic64 *a, long old_v, long new_v)
|
||||||
{
|
{
|
||||||
return __sync_val_compare_and_swap(&a->counter, old, new);
|
return __sync_val_compare_and_swap(&a->counter, old_v, new_v);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* *** SPIN LOCKS *** */
|
/* *** SPIN LOCKS *** */
|
||||||
|
@ -165,7 +165,7 @@ static inline int ocf_uuid_set_str(ocf_uuid_t uuid, char *str)
|
|||||||
*/
|
*/
|
||||||
static inline const char *ocf_uuid_to_str(const struct ocf_volume_uuid *uuid)
|
static inline const char *ocf_uuid_to_str(const struct ocf_volume_uuid *uuid)
|
||||||
{
|
{
|
||||||
return uuid->data;
|
return (const char *)uuid->data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user