mirror of
https://github.com/openvswitch/ovs
synced 2025-10-23 14:57:06 +00:00
treewide: Convert tabs to spaces in C source files written in OVS style.
The Open vSwitch C style doesn't use hard tabs. This commit doesn't touch files written in kernel style or that are imported from other projects where we want to minimize changes from upstream (the sflow files). Reported-by: Mehak Mahajan <mmahajan@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -178,15 +178,15 @@ put_unaligned_u64(uint64_t *p, uint64_t x)
|
||||
static inline uint64_t
|
||||
get_32aligned_u64(const ovs_32aligned_u64 *x)
|
||||
{
|
||||
return ((uint64_t) x->hi << 32) | x->lo;
|
||||
return ((uint64_t) x->hi << 32) | x->lo;
|
||||
}
|
||||
|
||||
/* Stores 'value' in 'x'. */
|
||||
static inline void
|
||||
put_32aligned_u64(ovs_32aligned_u64 *x, uint64_t value)
|
||||
{
|
||||
x->hi = value >> 32;
|
||||
x->lo = value;
|
||||
x->hi = value >> 32;
|
||||
x->lo = value;
|
||||
}
|
||||
|
||||
#ifndef __CHECKER__
|
||||
@@ -195,9 +195,9 @@ static inline ovs_be64
|
||||
get_32aligned_be64(const ovs_32aligned_be64 *x)
|
||||
{
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
return ((ovs_be64) x->hi << 32) | x->lo;
|
||||
return ((ovs_be64) x->hi << 32) | x->lo;
|
||||
#else
|
||||
return ((ovs_be64) x->lo << 32) | x->hi;
|
||||
return ((ovs_be64) x->lo << 32) | x->hi;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -206,8 +206,8 @@ static inline void
|
||||
put_32aligned_be64(ovs_32aligned_be64 *x, ovs_be64 value)
|
||||
{
|
||||
#if WORDS_BIGENDIAN
|
||||
x->hi = value >> 32;
|
||||
x->lo = value;
|
||||
x->hi = value >> 32;
|
||||
x->lo = value;
|
||||
#else
|
||||
x->hi = value;
|
||||
x->lo = value >> 32;
|
||||
|
||||
Reference in New Issue
Block a user