Skip to contentSkip to conversation

crypto: Fix typo in example

PATCH Applied Eric Blake 3 participants 3 messages Dec 21, 2015 – Jan 10, 2016 Crypto API

lore
Share & tools
lore

Eric Blake

author
#0 lore raw

PATCH 1/1 crypto: Fix typo in example

The example code wouldn't even compile, since it did not use a consistent spelling for the Error ** parameter.

---
 include/crypto/tlssession.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/crypto/tlssession.h +1 -1
index b38fe69..d356a8d 100644
@@ -56,7 +56,7 @@
  *
  * static int mysock_run_tls(int sockfd,
  *                           QCryptoTLSCreds *creds,
- *                           Error *erp)
+ *                           Error *errp)
  * {
  *    QCryptoTLSSession *sess;
  *
Signature · 1 line
2.4.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Eric Blake

The example code wouldn't even compile, since it did not use a consistent spelling for the Error ** parameter.

Quoted 9 lines
---
 include/crypto/tlssession.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/crypto/tlssession.h +0 -0
index b38fe69..d356a8d 100644

include/crypto/tlssession.h line 62

Quoted 8 lines
include/crypto/tlssession.h +1 -1
@@ -56,7 +56,7 @@
  *
  * static int mysock_run_tls(int sockfd,
  *                           QCryptoTLSCreds *creds,
- *                           Error *erp)
+ *                           Error *errp)
  * {
  *    QCryptoTLSSession *sess;
  *

Regards,
Daniel

Signature · 4 lines
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|
#2 lore raw
In reply to Eric Blake
Quoted 2 lines · Eric Blake

The example code wouldn't even compile, since it did not use a consistent spelling for the Error ** parameter.

Applied to -trivial, thanks!

/mjt