All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] key: Avoid using C++ keywords as param names.
@ 2019-01-23 19:24 Ossama Othman
  2019-01-23 19:50 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Ossama Othman @ 2019-01-23 19:24 UTC (permalink / raw)
  To: ell

[-- Attachment #1: Type: text/plain, Size: 1175 bytes --]

Rename the parameter names "public" and "private" to avoid conflicts
with the similarly named C++ keywords.  Addresses compile-time errors
in C++ code that includes <ell/key.h>.
---
 ell/key.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ell/key.h b/ell/key.h
index 024afc6..f1f95e1 100644
--- a/ell/key.h
+++ b/ell/key.h
@@ -70,16 +70,16 @@ ssize_t l_key_get_payload_size(struct l_key *key);
 
 bool l_key_get_info(struct l_key *key, enum l_key_cipher_type cipher,
 			enum l_checksum_type checksum, size_t *bits,
-			bool *public);
+			bool *out_public);
 
 struct l_key *l_key_generate_dh_private(const void *prime_buf,
 					size_t prime_len);
 
-bool l_key_compute_dh_public(struct l_key *generator, struct l_key *private,
+bool l_key_compute_dh_public(struct l_key *generator, struct l_key *private_key,
 				struct l_key *prime,
 				void *payload, size_t *len);
 
-bool l_key_compute_dh_secret(struct l_key *other_public, struct l_key *private,
+bool l_key_compute_dh_secret(struct l_key *other_public, struct l_key *private_key,
 				struct l_key *prime,
 				void *payload, size_t *len);
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2 1/2] key: Avoid using C++ keywords as param names.
  2019-01-23 19:24 [PATCH v2 1/2] key: Avoid using C++ keywords as param names Ossama Othman
@ 2019-01-23 19:50 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2019-01-23 19:50 UTC (permalink / raw)
  To: ell

[-- Attachment #1: Type: text/plain, Size: 476 bytes --]

Hi Ossama,

On 01/23/2019 01:24 PM, Ossama Othman wrote:
> Rename the parameter names "public" and "private" to avoid conflicts
> with the similarly named C++ keywords.  Addresses compile-time errors
> in C++ code that includes <ell/key.h>.
> ---
>   ell/key.h | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
> 

Applied, thanks.

I let Marcel figure out what to do with the second patch since it 
touches the build system.

Regards,
-Denis


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-23 19:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-23 19:24 [PATCH v2 1/2] key: Avoid using C++ keywords as param names Ossama Othman
2019-01-23 19:50 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.