#include <stdio.h>
#include <stdlib.h>

int main(void)
{
int *p1;
if((p1 = malloc(sizeof(int))) != NULL)
{
*p1=10;
printf("p1の内容は%d",*p1);
}
else
{
printf("メモリを確保できませんでした。");
}

return 0;
}


エラーが出ます。何かおかしいでしょうか。
(7) : error C2440: '=' : 'void *' から 'int *' に変換できません。