diff options
author | Jim Meyering <jim@meyering.net> | 2005-03-28 18:16:06 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-03-28 18:16:06 +0000 |
commit | ce70c7bdc442c965d60295efa75b10f36004f02a (patch) | |
tree | de05aacffde41c993b9a1f094fd586b034e21d85 /src | |
parent | 79c88de2ccbd89e9c97cdac84c53d36761d1a0c2 (diff) | |
download | coreutils-ce70c7bdc442c965d60295efa75b10f36004f02a.tar.xz |
(print_user): Use NULL, not `0'.
Diffstat (limited to 'src')
-rw-r--r-- | src/who.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* GNU's who. - Copyright (C) 1992-2004 Free Software Foundation, Inc. + Copyright (C) 1992-2005 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 @@ -370,7 +370,8 @@ print_user (const STRUCT_UTMP *utmp_ent, time_t boottime) if (utmp_ent->ut_host[0]) { char ut_host[sizeof (utmp_ent->ut_host) + 1]; - char *host = 0, *display = 0; + char *host = NULL; + char *display = NULL; /* Copy the host name into UT_HOST, and ensure it's nul terminated. */ strncpy (ut_host, utmp_ent->ut_host, sizeof (utmp_ent->ut_host)); |