unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 17697dacb2214ae8a62ee5fe9b795c67786e3ffe 1331 bytes (raw)
name: gnu/packages/patches/guile-ssh-rename-bool.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
From ad0af631250ce3399127d42995cc0bef6ad3ee5e Mon Sep 17 00:00:00 2001
From: Herman Rimm <herman@rimm.ee>
Date: Sun, 18 Aug 2024 16:05:44 +0200
Subject: [PATCH] libguile-ssh/session-func: Fix variable name

* libguile-ssh/session-func.c (set_bool_opt): Rename bool to boolean.
---
 libguile-ssh/session-func.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libguile-ssh/session-func.c b/libguile-ssh/session-func.c
index 7006b62..b379472 100644
--- a/libguile-ssh/session-func.c
+++ b/libguile-ssh/session-func.c
@@ -228,18 +228,18 @@ set_int32_opt (ssh_session session, int type, SCM value)
   return ssh_options_set (session, type, &c_value);
 }
 
-/* Convert VALUE to integer that represents a boolan value (0
+/* Convert VALUE to integer that represents a boolean value (0
    considered as false, any other value is true), and pass it to
    ssh_options_set */
 static inline int
 set_bool_opt (ssh_session session, int type, SCM value)
 {
-  int32_t bool;
+  int32_t boolean;
 
   SCM_ASSERT (scm_is_bool (value), value, SCM_ARG3, "session-set!");
 
-  bool = scm_to_bool (value);
-  return ssh_options_set (session, type, &bool);
+  boolean = scm_to_bool (value);
+  return ssh_options_set (session, type, &boolean);
 }
 
 /* Convert VALUE to a socket file descriptor and pass it to
-- 
2.45.2


debug log:

solving 17697dacb2 ...
found 17697dacb2 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).