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

[PATCH v2 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:39:50 +0100
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Edwin Török <edvin.torok@xxxxxxxxxx>, "Christian Lindig" <christian.lindig@xxxxxxxxxx>, David Scott <dave@xxxxxxxxxx>, "Ian Jackson" <ian.jackson@xxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Mon, 17 Aug 2020 18:40:41 +0000
  • Ironport-sdr: VDHxz6P3BjGSpSDtzFGRuqkP0gIMNM1QvMuADnRgT0xS5/FZHGlhxDURPyxgXOE+yfKZCD0oi9 7mC1CqoeuvuQ/NLxe2mjBsPlJ+COekzzi6khj4ADUo8k92XQ0lRWHLEBQp5lLP/eiz4W4wEyRu AJQFlRgsvMtmh2A7n32oTazJo0Vl/DmOQBbtmd6vSP9SNKyKH8bDFM+T48J+kAJRGK0o6Iabm7 kxxvHVMjT5J4sECPWDf1Gy3E4ThRo9Y+CVMPM65KPiqsRTbWP+v1d9K1Oz9/+hYPJCFgCM5b1e FJw=
  • 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®.