libssh2: fix build failure due to pointer dereferencing ambiguity
authorGiulio Benetti <giulio.benetti@micronovasrl.com>
Thu, 13 Sep 2018 08:08:54 +0000 (10:08 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 16 Sep 2018 14:11:21 +0000 (16:11 +0200)
commit4a7da55eb3d5236e3559f5492fa2c03bfb95084f
tree43581423d4f5df8991a6eb964055bcb643374906
parent1fc2b4395977059e418e0532ab093008de9f1bb4
libssh2: fix build failure due to pointer dereferencing ambiguity

When dereferencing from *aes_ctr_cipher, being a pointer itself,
ambiguity can occur with compiler and build can fail reporting:
openssl.c:574:20: error: ‘*aes_ctr_cipher’ is a pointer; did you mean to use ‘->’?
     *aes_ctr_cipher->nid = type;

Add a patch to sorround every *aes_ctr_cipher-> occurence with
paranthesis like this (*aes_ctr_cipher)->

Fixes:
http://autobuild.buildroot.net/results/97c/97c43dd2122f55f3166683aa1b29ce1ca54bcb9c/
http://autobuild.buildroot.net/results/4b7/4b728d275f1399e3cb72d40482076ee54b35852a/

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libssh2/0003-openssl-fix-dereferencing-ambiguity-potentially-caus.patch [new file with mode: 0644]