--- rxvt-unicode/src/logging.C 2006/01/22 01:00:46 1.37 +++ rxvt-unicode/src/logging.C 2006/01/22 12:23:55 1.40 @@ -18,6 +18,7 @@ * Copyright (c) 1999 D J Hawkey Jr * - lastlog support * Copyright (c) 2004-2006 Marc Lehmann + * Copyright (c) 2006 Emanuele Giaquinta * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -36,6 +37,14 @@ #include "../config.h" +#include + +#include +#include +#include +#include +#include + #include "ptytty.h" #if UTMP_SUPPORT @@ -89,7 +98,7 @@ sprintf (ut_id, "vt%02x", (i & 0xff)); /* sysv naming */ else if (strncmp (pty, "pty", 3) && strncmp (pty, "tty", 3)) { - warn ("can't parse tty name \"%s\", not adding utmp entry.\n", pty); + ptytty_warn ("can't parse tty name \"%s\", not adding utmp entry.\n", pty); return; } #endif @@ -419,7 +428,7 @@ pwent = getpwuid (getuid ()); if (!pwent) { - warn ("no entry in password file, not updating lastlog.\n"); + ptytty_warn ("no entry in password file, not updating lastlog.\n"); return; }