[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v3 2/6] tools/ocaml/xenstored: fix deprecation warning


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Edwin Török <edvin.torok@xxxxxxxxxx>
  • Date: Mon, 17 Aug 2020 19:45:45 +0100
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Edwin Török <edvin.torok@xxxxxxxxxx>
  • Delivery-date: Mon, 17 Aug 2020 18:46:17 +0000
  • Ironport-sdr: yOlvkVZPGs0m4ARli2izNiNIpX6g9wnCtlImqtku32KLxlJbav8bGdRaThKKqeV2C8oNaXYvsA R7ePMBHiT0QOMZd8lkw1RIIfkkmB2WNnN59HTJZKicZjP5z3eDqMcBJzjMcX3aiE9sa2jopcX9 j43OISkFw6V3Cq+WLA1y4A8mDhYuNizhRhuAded6N9aBCfIf5wIqZYLe0ibiqjxW3sq/N+/QuA 77oO0613W3oPZ1FR9Q1w1HKKIbc362TSgcWC4ccC3Csrt6TWO5o0NnOCZuzFXtw8PXRpX3OOoy ZPc=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

```
File "xenstored/disk.ml", line 33, characters 9-23:
33 |    let c = Char.lowercase c in
              ^^^^^^^^^^^^^^
(alert deprecated): Stdlib.Char.lowercase
Use Char.lowercase_ascii instead.
```

Signed-off-by: Edwin Török <edvin.torok@xxxxxxxxxx>
---
 tools/ocaml/xenstored/disk.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/ocaml/xenstored/disk.ml b/tools/ocaml/xenstored/disk.ml
index 4739967b61..1ca0e2a95e 100644
--- a/tools/ocaml/xenstored/disk.ml
+++ b/tools/ocaml/xenstored/disk.ml
@@ -30,7 +30,7 @@ let undec c =
        | _          -> raise (Failure "undecify")
 
 let unhex c =
-       let c = Char.lowercase c in
+       let c = Char.lowercase_ascii c in
        match c with
        | '0' .. '9' -> (Char.code c) - (Char.code '0')
        | 'a' .. 'f' -> (Char.code c) - (Char.code 'a') + 10
-- 
2.25.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.