fix some compiler warnings
This commit is contained in:
parent
4572357e87
commit
d1eeecb137
@ -177,7 +177,8 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf("\nEnter key: ");
|
printf("\nEnter key: ");
|
||||||
fgets((char *)tmpkey,sizeof(tmpkey), stdin);
|
if(fgets((char *)tmpkey,sizeof(tmpkey), stdin) == NULL)
|
||||||
|
exit(-1);
|
||||||
outlen = sizeof(key);
|
outlen = sizeof(key);
|
||||||
if ((errno = hash_memory(hash_idx,tmpkey,strlen((char *)tmpkey),key,&outlen)) != CRYPT_OK) {
|
if ((errno = hash_memory(hash_idx,tmpkey,strlen((char *)tmpkey),key,&outlen)) != CRYPT_OK) {
|
||||||
printf("Error hashing key: %s\n", error_to_string(errno));
|
printf("Error hashing key: %s\n", error_to_string(errno));
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
int errno;
|
int errno;
|
||||||
|
|
||||||
void register_algs();
|
void register_algs(void);
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user