diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2016-12-12 16:03:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-12 16:03:52 +0100 |
commit | 142a1afbb9ae02dc69394e0e258624e9ce21f562 (patch) | |
tree | 709fe437503fa4828b7b7feee06953ab82962ad7 /src/basic/util.c | |
parent | e3e30d2a44ba6e204c92d2afa28d402f6e9ba263 (diff) | |
parent | 7a100dce9db33006888156876ff8aeb27e77eed2 (diff) |
Merge pull request #4771 from keszybz/udev-property-ordering
Udev property ordering
Diffstat (limited to 'src/basic/util.c')
-rw-r--r-- | src/basic/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/util.c b/src/basic/util.c index 8a630049d7..6204906f37 100644 --- a/src/basic/util.c +++ b/src/basic/util.c @@ -492,7 +492,7 @@ void *xbsearch_r(const void *key, const void *base, size_t nmemb, size_t size, u = nmemb; while (l < u) { idx = (l + u) / 2; - p = (void *)(((const char *) base) + (idx * size)); + p = (const char *) base + idx * size; comparison = compar(key, p, arg); if (comparison < 0) u = idx; |