summaryrefslogtreecommitdiff
path: root/src/examples/eldbus
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean@guyomarch.bzh>2017-03-09 22:19:03 +0100
committerJean Guyomarc'h <jean@guyomarch.bzh>2017-03-09 23:16:16 +0100
commit7ef27a46691bc90ee3d2675a7b11ef972d49ed48 (patch)
tree00a01534e145ed686e494df61527d0a2696f3335 /src/examples/eldbus
parent660259b46da6b03aa35dd09b146f7f7966fc1b9b (diff)
eldbus: don't abs() an unsigned value
clang complained about abs() being used on an unsigned integer. Calling abs() is actually unnecessary.
Diffstat (limited to 'src/examples/eldbus')
-rw-r--r--src/examples/eldbus/complex-types-client-eina-value.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/eldbus/complex-types-client-eina-value.c b/src/examples/eldbus/complex-types-client-eina-value.c
index 1789321..ac657b3 100644
--- a/src/examples/eldbus/complex-types-client-eina-value.c
+++ b/src/examples/eldbus/complex-types-client-eina-value.c
@@ -31,7 +31,7 @@ _type_offset(unsigned base, unsigned size)
31 unsigned padding; 31 unsigned padding;
32 if (!(base % size)) 32 if (!(base % size))
33 return base; 33 return base;
34 padding = abs(base - size); 34 padding = base - size;
35 return base + padding; 35 return base + padding;
36} 36}
37 37