mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
Avoid unnecessary and sometimes time-consuming hostname lookups.
(print_entry): Likewise. This fixes a typo I introduced in who-users.c on 1996-02-23.
This commit is contained in:
1 parent
c3796f404a
commit
7cea884787
1 file changed
+2
-2
+2
-2
@@ -1,5 +1,5 @@
|
||||
/* GNU's pinky.
|
||||
Copyright (C) 1992-1997, 1999-2002 Free Software Foundation, Inc.
|
||||
Copyright (C) 1992-1997, 1999-2003 Free Software Foundation, Inc.
|
||||
|
||||
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
|
||||
@@ -259,7 +259,7 @@ print_entry (const STRUCT_UTMP *utmp_ent)
|
||||
ut_host[sizeof (utmp_ent->ut_host)] = '\0';
|
||||
|
||||
/* Look for an X display. */
|
||||
display = strrchr (ut_host, ':');
|
||||
display = strchr (ut_host, ':');
|
||||
if (display)
|
||||
*display++ = '\0';
|
||||
|
||||
|
||||
Reference in new issue
Block a user