HAVE_SETUTENT isn't set.
(update_utmp): declare tty at top of function.
Now the whole tree builds under raw sunos, native cc (still needs gnumake
though)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4804
dc483132-0cff-0310-8789-
dd5450dbe970
+Wed Jan 11 01:25:09 1995 Mark Eichin <eichin@cygnus.com>
+
+ * logutil.c (update_wtmp): declare missing variables if
+ HAVE_SETUTENT isn't set.
+ (update_utmp): declare tty at top of function.
+
Tue Jan 10 19:43:18 1995 Mark Eichin (eichin@cygnus.com)
* krlogin.c (doit): use exit_handler for signal exits, don't use
struct utmp ut;
#else
struct stat statb;
+ int tty;
#endif
#ifdef HAVE_SETUTXENT
struct utmpx utx;
#else /* HAVE_SETUTENT */
- int tty = ttyslot();
+ tty = ttyslot();
if (tty > 0 && (fd = open(UTMP_FILE, O_WRONLY, 0)) >= 0) {
(void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
(void)write(fd, (char *)ent, sizeof(struct utmp));
void update_wtmp(ent)
struct utmp *ent;
{
+#ifndef HAVE_SETUTENT
+ struct utmp ut;
+ struct stat statb;
+ int fd;
+#endif /* !HAVE_SETUTENT */
#ifdef HAVE_SETUTXENT
struct utmpx utx;