>>While compiling:
>>char *a = strstr("hello", "ccache=");
>>
>>Warning:
>>
>>pam_krb5_auth.c:287: warning: initialization makes pointer from integer without a cast
>>
>>So, why is an integer expected??????
On my machine here...
csk@syd-de-unix:~$ cat test.c
#include <string.h>
int main()
{
char *a = strstr("hello", "ccache=");
}
csk@syd-de-unix:~$ gcc test.c
csk@syd-de-unix:~$
Maybe something else in a different include file is defining strstr
before string.h gets to it?
Or else the problem is on a different line?
- Chris