Let base64_encode() take a char *

Throughout the whole code base only char * is passed, but a unsigned
char * is expected. This leads to several warnings.

Fix the interface and cast to unsigned char * internally to avoid any
changes to the behaviour.
This commit is contained in:
Rene Kita
2021-09-12 11:47:38 +02:00
parent 561f27f833
commit cf7058b56c
2 changed files with 9 additions and 7 deletions

View File

@@ -831,4 +831,4 @@ void srand48(long);
long lrand48(void);
#endif
extern Str base64_encode(const unsigned char *src, size_t len);
extern Str base64_encode(const char *src, size_t len);