tests: Silence compiler warnings from test-base64
Use typecasting to match the base64_{encode,decode}() function prototype for signed/unsigned char buffer. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
05195189f1
commit
a964cb65a1
1 changed files with 2 additions and 2 deletions
|
@ -26,9 +26,9 @@ int main(int argc, char *argv[])
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (strcmp(argv[1], "encode") == 0)
|
if (strcmp(argv[1], "encode") == 0)
|
||||||
e = base64_encode(buf, len, &elen);
|
e = (unsigned char *) base64_encode(buf, len, &elen);
|
||||||
else
|
else
|
||||||
e = base64_decode(buf, len, &elen);
|
e = base64_decode((const char *) buf, len, &elen);
|
||||||
if (e == NULL)
|
if (e == NULL)
|
||||||
return -2;
|
return -2;
|
||||||
f = fopen(argv[3], "w");
|
f = fopen(argv[3], "w");
|
||||||
|
|
Loading…
Reference in a new issue