Eric Blake fd66ea669c bitmap: fix problems in previous commit
Commit ee3d3893 missed the fact that (unsigned char)<<(int)
is truncated to int, and therefore failed for any bitmap data
longer than four bytes.

Also, I failed to run 'make syntax-check' on my commit 4bba6579;
for whatever odd reason, ffs lives in a different header than ffsl.

* src/util/bitmap.c (virBitmapNewData): Use correct shift type.
(includes): Glibc (and therefore gnulib) decided ffs is in
<strings.h>, but ffsl is in <string.h>.
* tests/virbitmaptest.c (test5): Test it.
2012-09-18 17:47:06 -06:00
..
2012-09-17 14:59:36 -04:00
2012-07-27 18:27:21 +08:00
2012-07-27 18:27:21 +08:00
2012-09-07 13:30:20 +01:00
2012-08-01 11:44:32 +08:00
2012-07-27 18:27:21 +08:00
2012-07-27 18:27:21 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-08-09 15:40:42 -06:00
2012-07-27 18:27:21 +08:00
2012-07-27 18:27:21 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-09-18 14:42:33 +08:00
2012-09-18 14:42:33 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-25 10:37:51 +02:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-08-21 12:07:00 -06:00
2012-07-23 10:50:50 +08:00
2012-04-19 10:21:43 -04:00
2012-08-15 13:10:57 -04:00
2012-08-15 13:10:57 -04:00
2012-08-14 15:33:10 -06:00
2012-07-23 10:50:50 +08:00
2012-07-27 18:27:21 +08:00
2012-07-27 18:27:21 +08:00
2012-07-27 18:27:21 +08:00
2011-12-08 11:37:24 +08:00