]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Use the new bit function names.
authorVMware, Inc <>
Thu, 17 Jun 2010 21:33:53 +0000 (14:33 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Thu, 17 Jun 2010 21:33:53 +0000 (14:33 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/modules/linux/vsock/linux/af_vsock.c

index 3464f0d104d6d6126c6a2c2b6e095724401e4c51..fd610afcd529ffb65f9bddf77faaea94160e53a6 100644 (file)
@@ -1593,7 +1593,7 @@ VSockVmciRecvListen(struct sock *sk,   // IN
       protoInt &= VSockVmciNewProtoSupportedVersions();
 
       /* We choose the highest possible protocol version and use that one. */
-      pos = fls(protoInt);
+      pos = mssb32(protoInt);
       if (pos) {
          activeProtoVersion = (1 << (pos - 1));
          if (VSockVmciProtoToNotifyStruct(pending, &activeProtoVersion, FALSE)) {