Whamcloud - gitweb
Remove lib/simple.c functions from ldlm/ldlm_lib.c into obdclass/simple.c
authoradilger <adilger>
Tue, 27 May 2003 21:40:58 +0000 (21:40 +0000)
committeradilger <adilger>
Tue, 27 May 2003 21:40:58 +0000 (21:40 +0000)
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

index 5404f13..6223034 100644 (file)
@@ -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);