summaryrefslogtreecommitdiff
path: root/lib/mountlist.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-07-20 07:57:06 +0000
committerJim Meyering <jim@meyering.net>2006-07-20 07:57:06 +0000
commitdb42e50e5e90ec6f6f9236de26802820449107e6 (patch)
treefc6fc89a5bf29a8dfce7003db7ff56f46ab7762a /lib/mountlist.c
parent7d97c337a7c105414138dc12dbb1f6cd113d008d (diff)
downloadcoreutils-db42e50e5e90ec6f6f9236de26802820449107e6.tar.xz
(ME_REMOTE): Compare strchr's result to NULL, not 0, for better readability.
Diffstat (limited to 'lib/mountlist.c')
-rw-r--r--lib/mountlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mountlist.c b/lib/mountlist.c
index b957a973f..0b21a6fa8 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))