ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/logging.C
(Generate patch)

Comparing rxvt-unicode/src/logging.C (file contents):
Revision 1.16 by root, Wed Feb 16 21:37:10 2005 UTC vs.
Revision 1.18 by root, Tue Nov 8 17:35:28 2005 UTC

73 struct utmpx *utx = &this->utx; 73 struct utmpx *utx = &this->utx;
74#endif 74#endif
75#ifdef HAVE_UTMP_PID 75#ifdef HAVE_UTMP_PID
76 int i; 76 int i;
77#endif 77#endif
78 struct passwd *pwent = getpwuid (getuid ()); 78 struct passwd *pwent = getpwuid (getuid ());
79 79
80 if (!strncmp (pty, "/dev/", 5)) 80 if (!strncmp (pty, "/dev/", 5))
81 pty += 5; /* skip /dev/ prefix */ 81 pty += 5; /* skip /dev/ prefix */
82 82
83#ifdef HAVE_UTMP_PID 83#ifdef HAVE_UTMP_PID
176# else 176# else
177 FILE *fd0; 177 FILE *fd0;
178 178
179 if ((fd0 = fopen (TTYTAB_FILENAME, "r")) != NULL) 179 if ((fd0 = fopen (TTYTAB_FILENAME, "r")) != NULL)
180 { 180 {
181 char buf[256], name[256]; 181 char buf[256], name[256];
182 182
183 buf[sizeof (buf) - 1] = '\0'; 183 buf[sizeof (buf) - 1] = '\0';
184 for (i = 1; (fgets (buf, sizeof (buf) - 1, fd0) != NULL);) 184 for (i = 1; (fgets (buf, sizeof (buf) - 1, fd0) != NULL);)
185 { 185 {
186 if (*buf == '#' || sscanf (buf, "%s", name) != 1) 186 if (*buf == '#' || sscanf (buf, "%s", name) != 1)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines