Changeset 383 for trunk/src/sh_files.c
- Timestamp:
- Dec 5, 2011, 10:30:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_files.c
r381 r383 107 107 po = SH_ALLOC(len+1); *po = '\0'; p = po; pend = &po[len]; 108 108 109 i = 0;q = s;109 q = s; 110 110 111 111 do … … 925 925 #endif 926 926 927 int sh_files_push_file_int (int class, const char * str_s, size_t len, unsigned long check_mask) 927 int sh_files_push_file_int (int class, const char * str_s, size_t len, 928 unsigned long check_mask) 928 929 { 929 930 dirstack_t * new_item_ptr; 930 931 char * fileName; 931 932 int ret; 932 int count = 0;933 volatile int count = 0; 933 934 934 935 SL_ENTER(_("sh_files_push_file_int")); … … 1022 1023 glob_t pglob; 1023 1024 1024 int count = 0;1025 volatile int count = 0; 1025 1026 volatile unsigned long check_mask = (flag == 0) ? sh_files_maskof(class) : check_mask_in; 1026 1027 … … 1877 1878 1878 1879 static void * sh_dummy_dirlist; 1880 static void * sh_dummy_tmpcat; 1879 1881 1880 1882 /* -- Check a single directory and its content. Does not … … 1904 1906 int class = 0; 1905 1907 volatile int rdepth_next; 1906 intclass_next;1908 volatile int class_next; 1907 1909 volatile int file_class_next; 1908 unsigned long check_mask_next;1910 volatile unsigned long check_mask_next; 1909 1911 volatile unsigned long file_check_mask_next; 1910 1912 … … 1921 1923 1922 1924 SL_ENTER(_("sh_files_checkdir")); 1923 1924 sh_dummy_dirlist = (void *) &dirlist;1925 1925 1926 1926 if (sig_urgent > 0) { … … 2064 2064 sl_strlcpy (theDir->DirPath, iname, PATH_MAX); 2065 2065 2066 2067 sh_dummy_dirlist = (void *) &dirlist; 2068 sh_dummy_tmpcat = (void *) &tmpcat; 2066 2069 2067 2070 /* ---- read ---- … … 2347 2350 { 2348 2351 SH_FREE(theDir); 2352 sh_dummy_dirlist = NULL; 2349 2353 SL_RETURN((0), _("sh_files_checkdir")); 2350 2354 } … … 2397 2401 SH_FREE(tmpname); 2398 2402 SH_FREE(theDir); 2403 2404 sh_dummy_dirlist = NULL; 2399 2405 2400 2406 SL_RETURN((0), _("sh_files_checkdir")); … … 2686 2692 int * rdepth) 2687 2693 { 2688 int retval = 0;2694 volatile int retval = 0; 2689 2695 #if defined(HAVE_GLOB_H) && defined(HAVE_FNMATCH_H) 2690 2696 sh_globstack_t * testPattern; … … 2757 2763 unsigned long *check_mask, int *reported) 2758 2764 { 2759 int retval = 0;2765 volatile int retval = 0; 2760 2766 #if defined(HAVE_GLOB_H) && defined(HAVE_FNMATCH_H) 2761 2767 sh_globstack_t * testPattern;
Note:
See TracChangeset
for help on using the changeset viewer.