D
Daniel Rudy
Hello,
Consider the following code fragment:
fileptr = fopen(param->filename, "r");
if (fileptr == NULL)
{
error("digest.c: digest_file: Open File ", errno);
return(-2);
}
With the above code, the compiler (gcc) gives the following warning:
digest.c:121: warning: passing arg 1 of `error' discards qualifiers from
pointer target type.
The function error is declared as follows:
void error(char *errmsg, int code);
Why does it give this message and how do I silence it?
Thanks
--
Daniel Rudy
Email address has been base64 encoded to reduce spam
Decode email address using b64decode or uudecode -m
Why geeks like computers: look chat date touch grep make unzip
strip view finger mount fcsk more fcsk yes spray umount sleep
Consider the following code fragment:
fileptr = fopen(param->filename, "r");
if (fileptr == NULL)
{
error("digest.c: digest_file: Open File ", errno);
return(-2);
}
With the above code, the compiler (gcc) gives the following warning:
digest.c:121: warning: passing arg 1 of `error' discards qualifiers from
pointer target type.
The function error is declared as follows:
void error(char *errmsg, int code);
Why does it give this message and how do I silence it?
Thanks
--
Daniel Rudy
Email address has been base64 encoded to reduce spam
Decode email address using b64decode or uudecode -m
Why geeks like computers: look chat date touch grep make unzip
strip view finger mount fcsk more fcsk yes spray umount sleep