projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0586a4
)
blob: Remove some unnecessary casts for arguments to read_u32().
author
Andre Noll
<maan@tuebingen.mpg.de>
Thu, 20 Jul 2017 15:41:22 +0000
(17:41 +0200)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 23 Jul 2017 16:01:10 +0000
(18:01 +0200)
Since read_u32() has been modified to receive a void * pointer,
these casts are no longer needed.
blob.c
patch
|
blob
|
history
diff --git
a/blob.c
b/blob.c
index 2d7c6050cfb18c198675c1ce4a534dd824983310..7798a4939b9d0859b5fe7d4939feb0d237b36b8b 100644
(file)
--- a/
blob.c
+++ b/
blob.c
@@
-33,8
+33,8
@@
*/
static int uint32_compare(const struct osl_object *obj1, const struct osl_object *obj2)
{
- uint32_t d1 = read_u32(
(const char *)
obj1->data);
- uint32_t d2 = read_u32(
(const char *)
obj2->data);
+ uint32_t d1 = read_u32(obj1->data);
+ uint32_t d2 = read_u32(obj2->data);
if (d1 < d2)
return 1;