git: lib/libdmsg: Fix compile warnings on Linux distros

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Tue Sep 3 06:33:45 PDT 2019


commit c17dbda3899c737e5a54b047c2990985dc757a58
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Tue Sep 3 16:58:42 2019 +0900

    lib/libdmsg: Fix compile warnings on Linux distros
    
    --
    crypto.c:210: warning: pointer targets in passing argument 5 of 'EVP_EncryptInit_ex' differ in signedness
    /usr/include/openssl/evp.h:586: note: expected 'const unsigned char *' but argument is of type 'char *'
    crypto.c:216: warning: pointer targets in passing argument 2 of 'EVP_EncryptUpdate' differ in signedness
    /usr/include/openssl/evp.h:588: note: expected 'unsigned char *' but argument is of type 'char *'
    crypto.c:216: warning: pointer targets in passing argument 4 of 'EVP_EncryptUpdate' differ in signedness
    /usr/include/openssl/evp.h:588: note: expected 'const unsigned char *' but argument is of type 'char *'
    crypto.c:221: warning: pointer targets in passing argument 2 of 'EVP_EncryptFinal' differ in signedness
    /usr/include/openssl/evp.h:591: note: expected 'unsigned char *' but argument is of type 'char *'
    ...

Summary of changes:
 lib/libdmsg/crypto.c | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c17dbda3899c737e5a54b047c2990985dc757a58


-- 
DragonFly BSD source repository


More information about the Commits mailing list