getuid() to int as argument to getpwuid.
* ksetpwd.c: Include time.h for time() prototype.
(main): Return 0 on success.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16417
dc483132-0cff-0310-8789-
dd5450dbe970
+2004-06-07 Ezra Peisach <epeisach@mit.edu>
+
+ * kpasswd.c (get_name_from_passwd_file): Do not cast return from
+ getuid() to int as argument to getpwuid.
+
+ * ksetpwd.c: Include time.h for time() prototype.
+ (main): Return 0 on success.
+
2004-05-30 Ken Raeburn <raeburn@mit.edu>
* ksetpwd.c (verify_creds, get_init_creds_opt_init,
{
struct passwd *pw;
krb5_error_code code;
- if ((pw = getpwuid((int) getuid()))) {
+ if ((pw = getpwuid(getuid()))) {
if ((code = krb5_parse_name(kcontext, pw->pw_name, me))) {
com_err (program_name, code, "when parsing name %s", pw->pw_name);
exit(1);
#include <string.h>
#include <unistd.h>
#include <stdio.h>
+#include <time.h>
#define TKTTIMELEFT 60*10 /* ten minutes */
}
}
}
+ return(0);
}