]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(print_entry): Use NULL, not `0'.
authorJim Meyering <jim@meyering.net>
Mon, 28 Mar 2005 18:06:55 +0000 (18:06 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 28 Mar 2005 18:06:55 +0000 (18:06 +0000)
src/pinky.c

index 8aa1d42d911fd79e1c095c77112dbcb9fe0f5e46..06450e2297fa4cec87c51ad43a0abd1dcb33d89a 100644 (file)
@@ -1,5 +1,5 @@
 /* GNU's pinky.
-   Copyright (C) 1992-1997, 1999-2004 Free Software Foundation, Inc.
+   Copyright (C) 1992-1997, 1999-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
@@ -288,7 +288,8 @@ print_entry (const STRUCT_UTMP *utmp_ent)
     {
       extern char *canon_host ();
       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, (int) sizeof (utmp_ent->ut_host));