pc1crypt: make decrypt/encrypt functions take void * as argument
authorRafał Miłecki <rafal@milecki.pl>
Fri, 23 Feb 2024 06:18:39 +0000 (07:18 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 26 Mar 2024 09:16:30 +0000 (10:16 +0100)
commitbd7fcc74b43e9c6b08d376aacd5e7a04b9f8e9b6
tree1ca007921cb861f0b162939b686359b790aee33b
parent81db3025aac56690b5c4782544065141ddc5d6e5
pc1crypt: make decrypt/encrypt functions take void * as argument

Make them more generic regarding accepted data buffers.

This fixes:

src/pc1crypt.c: In function ‘main’:
src/pc1crypt.c:322:26: warning: pointer targets in passing argument 2 of ‘pc1_decrypt_buf’ differ in signedness [-Wpointer-sign]
    pc1_decrypt_buf(&pc1, buf, datalen);
                          ^~~
src/pc1crypt.c:324:26: warning: pointer targets in passing argument 2 of ‘pc1_encrypt_buf’ differ in signedness [-Wpointer-sign]
    pc1_encrypt_buf(&pc1, buf, datalen);
                          ^~~

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
src/pc1crypt.c