Blame SOURCES/0016-OCaml-tools-fix-3999-3339-typo.patch

46b2f6
From 1d4e167ebcf75771957f3ba109354a8217e78004 Mon Sep 17 00:00:00 2001
46b2f6
From: Pino Toscano <ptoscano@redhat.com>
46b2f6
Date: Mon, 1 Apr 2019 17:01:44 +0200
46b2f6
Subject: [PATCH] OCaml tools: fix 3999 -> 3339 typo
46b2f6
46b2f6
RFC 3339 is the actual RFC for date/time strings.
46b2f6
Typo found by Martin 'eagle eyes' Kletzander.
46b2f6
46b2f6
Fixes commit f79129b8dc92470e3a5597daf53c84038bd6859e.
46b2f6
46b2f6
(cherry picked from commit 1086599ad8eeb8be299d5ffbcb2efb1024ff9ab8)
46b2f6
---
46b2f6
 common/mltools/tools_utils-c.c | 4 ++--
46b2f6
 common/mltools/tools_utils.ml  | 4 ++--
46b2f6
 lib/guestfs.pod                | 2 +-
46b2f6
 3 files changed, 5 insertions(+), 5 deletions(-)
46b2f6
46b2f6
diff --git a/common/mltools/tools_utils-c.c b/common/mltools/tools_utils-c.c
46b2f6
index b015dcace..3b80091c0 100644
46b2f6
--- a/common/mltools/tools_utils-c.c
46b2f6
+++ b/common/mltools/tools_utils-c.c
46b2f6
@@ -39,7 +39,7 @@
46b2f6
 extern value guestfs_int_mllib_inspect_decrypt (value gv, value gpv, value keysv);
46b2f6
 extern value guestfs_int_mllib_set_echo_keys (value unitv);
46b2f6
 extern value guestfs_int_mllib_set_keys_from_stdin (value unitv);
46b2f6
-extern value guestfs_int_mllib_rfc3999_date_time_string (value unitv);
46b2f6
+extern value guestfs_int_mllib_rfc3339_date_time_string (value unitv);
46b2f6
 
46b2f6
 /* Interface with the guestfish inspection and decryption code. */
46b2f6
 int echo_keys = 0;
46b2f6
@@ -108,7 +108,7 @@ guestfs_int_mllib_set_keys_from_stdin (value unitv)
46b2f6
 }
46b2f6
 
46b2f6
 value
46b2f6
-guestfs_int_mllib_rfc3999_date_time_string (value unitv)
46b2f6
+guestfs_int_mllib_rfc3339_date_time_string (value unitv)
46b2f6
 {
46b2f6
   CAMLparam1 (unitv);
46b2f6
   char buf[64];
46b2f6
diff --git a/common/mltools/tools_utils.ml b/common/mltools/tools_utils.ml
46b2f6
index de42df600..127180225 100644
46b2f6
--- a/common/mltools/tools_utils.ml
46b2f6
+++ b/common/mltools/tools_utils.ml
46b2f6
@@ -32,7 +32,7 @@ and key_store_key =
46b2f6
 external c_inspect_decrypt : Guestfs.t -> int64 -> (string * key_store_key) list -> unit = "guestfs_int_mllib_inspect_decrypt"
46b2f6
 external c_set_echo_keys : unit -> unit = "guestfs_int_mllib_set_echo_keys" "noalloc"
46b2f6
 external c_set_keys_from_stdin : unit -> unit = "guestfs_int_mllib_set_keys_from_stdin" "noalloc"
46b2f6
-external c_rfc3999_date_time_string : unit -> string = "guestfs_int_mllib_rfc3999_date_time_string"
46b2f6
+external c_rfc3339_date_time_string : unit -> string = "guestfs_int_mllib_rfc3339_date_time_string"
46b2f6
 
46b2f6
 type machine_readable_fn = {
46b2f6
   pr : 'a. ('a, unit, string, unit) format4 -> 'a;
46b2f6
@@ -93,7 +93,7 @@ let log_as_json msgtype msg =
46b2f6
   | Some { pr } ->
46b2f6
     let json = [
46b2f6
       "message", JSON.String msg;
46b2f6
-      "timestamp", JSON.String (c_rfc3999_date_time_string ());
46b2f6
+      "timestamp", JSON.String (c_rfc3339_date_time_string ());
46b2f6
       "type", JSON.String msgtype;
46b2f6
     ] in
46b2f6
     pr "%s\n" (JSON.string_of_doc ~fmt:JSON.Compact json)
46b2f6
diff --git a/lib/guestfs.pod b/lib/guestfs.pod
46b2f6
index 3c1d635c5..af944ddb7 100644
46b2f6
--- a/lib/guestfs.pod
46b2f6
+++ b/lib/guestfs.pod
46b2f6
@@ -3295,7 +3295,7 @@ within a single line, below it is indented for readability):
46b2f6
 C<type> can be: C<message> for progress messages, C<info> for
46b2f6
 information messages, C<warning> for warning messages, and C<error>
46b2f6
 for error message.
46b2f6
-C<timestamp> is the L<RFC 3999|https://www.ietf.org/rfc/rfc3339.txt>
46b2f6
+C<timestamp> is the L<RFC 3339|https://www.ietf.org/rfc/rfc3339.txt>
46b2f6
 timestamp of the message.
46b2f6
 
46b2f6
 In addition to that, a subset of these tools support an extra string
46b2f6
-- 
b155d0
2.26.2
46b2f6