From c5d9705168dfe3b3a8fcd2a53d880fdf339e42c0 Mon Sep 17 00:00:00 2001 From: adilger Date: Tue, 27 May 2003 21:40:58 +0000 Subject: [PATCH] Remove lib/simple.c functions from ldlm/ldlm_lib.c into obdclass/simple.c Remove duplicate declarations of client_obd_{setup,cleanup}() in ldlm/ldlm_lib.c Remove duplicate declarations of client_sanobd_setup()/path2dev. --- lustre/tests/createtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/tests/createtest.c b/lustre/tests/createtest.c index 5404f13..6223034 100644 --- a/lustre/tests/createtest.c +++ b/lustre/tests/createtest.c @@ -94,7 +94,7 @@ int main(int argc, char *argv[]) argv[0], name, strerror(errno)); exit(11); } - if ((st.st_mode & S_IFMT) != S_IFREG) { + if (!S_ISREG(st.st_mode & S_IFMT)) { fprintf(stderr, "%s: ERROR mode %s: %o != %o", argv[0], name, st.st_mode & S_IFMT, S_IFREG); exit(12); @@ -124,7 +124,7 @@ int main(int argc, char *argv[]) argv[0], name, strerror(errno)); exit(11); } - if ((st.st_mode & S_IFMT) != S_IFDIR) { + if (!S_ISDIR(st.st_mode)) { fprintf(stderr, "%s: ERROR mode %s: %o != %o", argv[0], name, st.st_mode & S_IFMT, S_IFDIR); exit(12); -- 1.8.3.1