From: Jim Meyering Date: Thu, 20 Jul 2006 07:57:06 +0000 (+0000) Subject: (ME_REMOTE): Compare strchr's result to NULL, not 0, for better readability. X-Git-Tag: COREUTILS-6_0~130 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db42e50e5e90ec6f6f9236de26802820449107e6;p=platform%2Fupstream%2Fcoreutils.git (ME_REMOTE): Compare strchr's result to NULL, not 0, for better readability. --- diff --git a/lib/mountlist.c b/lib/mountlist.c index b957a97..0b21a6f 100644 --- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -1,7 +1,7 @@ /* mountlist.c -- return a list of mounted file systems Copyright (C) 1991, 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2003, - 2004, 2005 Free Software Foundation, Inc. + 2004, 2005, 2006 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 @@ -155,7 +155,7 @@ char *strstr (); /* A file system is `remote' if its Fs_name contains a `:' or if (it is of type smbfs and its Fs_name starts with `//'). */ # define ME_REMOTE(Fs_name, Fs_type) \ - (strchr (Fs_name, ':') != 0 \ + (strchr (Fs_name, ':') != NULL \ || ((Fs_name)[0] == '/' \ && (Fs_name)[1] == '/' \ && strcmp (Fs_type, "smbfs") == 0))