From: Gary V. Vaughan Date: Mon, 24 Oct 2011 09:23:41 +0000 (+0700) Subject: syntax-check: fix violations and re-enable sc_file_system. X-Git-Tag: v2.4.2.418~251 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40adfb1b85e3a1d03b43367f8671176cdadf9d02;p=thirdparty%2Flibtool.git syntax-check: fix violations and re-enable sc_file_system. * cfg.mk (local-checks-to-fix): Remove sc_file_system from list of disabled checks. (VC_LIST_ALWAYS_EXCLUDE_REGEX): Match mail directory correctly to avoid running its contents through syntax-check. * build-aux/ltmain.m4sh (func_mode_link): Use correct spelling for "file system". * libltdl/ltdl.c (try_dlopen): Ditto. * tests/dlloader-api.at: Ditto. Signed-off-by: Gary V. Vaughan --- diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index ff3a52f80..a66158333 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -6736,7 +6736,7 @@ func_mode_link () windows) # Use '-' rather than '.', since we only want one - # extension on DOS 8.3 filesystems. + # extension on DOS 8.3 file systems. func_arith $current - $age major=$func_arith_result versuffix="-$major" diff --git a/cfg.mk b/cfg.mk index 4c50f548d..8bb070889 100644 --- a/cfg.mk +++ b/cfg.mk @@ -35,10 +35,9 @@ announcement_Cc_ = autotools-announce@gnu.org, $(PACKAGE_BUGREPORT) endif # Don't syntax check the mail subdirectory. -VC_LIST_ALWAYS_EXCLUDE_REGEX = /mail/ +VC_LIST_ALWAYS_EXCLUDE_REGEX = ^mail/ local-checks-to-fix = \ - sc_file_system \ sc_m4_quote_check \ sc_makefile_TAB_only_indentation \ sc_makefile_at_at_check \ diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 85f845217..06f0f5aeb 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -1274,7 +1274,7 @@ try_dlopen (lt_dlhandle *phandle, const char *filename, const char *ext, name[ext - base_name] = LT_EOS_CHAR; } - /* Before trawling through the filesystem in search of a module, + /* Before trawling through the file system in search of a module, check whether we are opening a preloaded module. */ if (!dir) { diff --git a/tests/dlloader-api.at b/tests/dlloader-api.at index 5eeafba65..3215c3b68 100644 --- a/tests/dlloader-api.at +++ b/tests/dlloader-api.at @@ -45,7 +45,7 @@ first_open (lt_user_data data, const char *filename, lt_dladvise advise) static const char *first_module = "first"; const char *ctx = (const char *) data; - /* Use a magic string to avoid possible interactions with filesystem + /* Use a magic string to avoid possible interactions with file system * objects. Prepend '/' to short-circuit libltdl's search of * $shlibpath_var (e.g. PATH, LD_LIBRARY_PATH, or similar). */ @@ -115,7 +115,7 @@ last_open (lt_user_data data, const char *filename, lt_dladvise advise) static const char *last_module = "last"; const char *ctx = (const char *) data; - /* Use a magic string to avoid possible interactions with filesystem + /* Use a magic string to avoid possible interactions with file system * objects. Prepend '/' to short-circuit libltdl's search of * $shlibpath_var (e.g. PATH, LD_LIBRARY_PATH, or similar). */ @@ -277,7 +277,7 @@ main (int argc, char* argv[]) printf ("Found loader \"%s\"\n", finder->name); - /* Use a magic string to avoid possible interactions with filesystem + /* Use a magic string to avoid possible interactions with file system * objects. Prepend '/' to short-circuit libltdl's search of * $shlibpath_var (e.g. PATH, LD_LIBRARY_PATH, or similar). */ @@ -324,7 +324,7 @@ main (int argc, char* argv[]) lt_dlclose (module); - /* Use a magic string to avoid possible interactions with filesystem + /* Use a magic string to avoid possible interactions with file system * objects. Prepend '/' to short-circuit libltdl's search of * $shlibpath_var (e.g. PATH, LD_LIBRARY_PATH, or similar). */