if (strlen(pword) == 0) {
printf
("Unable to read password because zero length passord is illegal\n");
- *message = (char *)malloc(256);
+ *message = malloc(256);
sprintf(*message,
"Unable to read password because zero length passord is illegal\n");
return AUTH_FAILURE;
}
if ((pwd = getpwnam(userName)) == NULL) {
- *message = (char *)malloc(256);
+ *message = malloc(256);
sprintf(*message, "getpwnam for user failed\n");
return AUTH_FAILURE;
}
&password_expires, 0, &reason)) {
if (code == KANOENT)
return AUTH_NOTFOUND;
- *message = (char *)malloc(1024);
+ *message = malloc(1024);
sprintf(*message, "Unable to authenticate to AFS because %s.\n",
reason);
return AUTH_FAILURE;