Now that gnulib gives us ffs, we might as well use it.
* tools/virsh.c (vshCmddefGetData): Use ffs rather than
count_one_bits.
#include <inttypes.h>
#include <signal.h>
#include <poll.h>
+#include <strings.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include "configmake.h"
#include "threads.h"
#include "command.h"
-#include "count-one-bits.h"
#include "virkeycode.h"
static char *progname;
return NULL;
/* Grab least-significant set bit */
- i = count_one_bits(*opts_need_arg ^ (*opts_need_arg - 1)) - 1;
+ i = ffs(*opts_need_arg) - 1;
opt = &cmd->opts[i];
if (opt->type != VSH_OT_ARGV)
*opts_need_arg &= ~(1 << i);