fix some compiler warnings

This commit is contained in:
Steffen Jaeckel 2016-01-23 18:59:44 +01:00
parent 4572357e87
commit d1eeecb137
2 changed files with 3 additions and 2 deletions

View File

@ -177,7 +177,8 @@ int main(int argc, char *argv[])
}
printf("\nEnter key: ");
fgets((char *)tmpkey,sizeof(tmpkey), stdin);
if(fgets((char *)tmpkey,sizeof(tmpkey), stdin) == NULL)
exit(-1);
outlen = sizeof(key);
if ((errno = hash_memory(hash_idx,tmpkey,strlen((char *)tmpkey),key,&outlen)) != CRYPT_OK) {
printf("Error hashing key: %s\n", error_to_string(errno));

View File

@ -11,7 +11,7 @@
int errno;
void register_algs();
void register_algs(void);
int main(int argc, char **argv)
{