new exit/cleanup code
[rsync/rsync.git] / exclude.c
index b5b230b..9a83741 100644 (file)
--- a/exclude.c
+++ b/exclude.c
@@ -35,7 +35,6 @@ static int is_regex(char *str)
 
 static int check_one_exclude(char *name,char *pattern)
 {
-  char *str;
   char *p;
 
   if (!strchr(pattern,'/') && (p=strrchr(name,'/')))
@@ -123,7 +122,7 @@ char **make_exclude_list(char *fname,char **list1,int fatal)
   if (!f) {
     if (fatal) {
       fprintf(stderr,"%s : %s\n",fname,strerror(errno));
-      exit(1);
+      exit_cleanup(1);
     }
     return list;
   }