#include <stdio.h>
#define _XOPEN_SOURCE
#include <unistd.h>
int main()
{
const char *key = NULL;
const char *salt = NULL;
crypt(key, salt);
return 0;
}
use gcc test.c -o test -Wall -lcrypt
to compile.
Which gives this warning:
initialization makes pointer from integer without a cast
Can anyone explain this warning and how to properly avoid it?