ctm.c (2926) | ctm.c (2948) |
---|---|
1/* 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@login.dknet.dk> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 * --- 36 unchanged lines hidden (view full) --- 45 46 Verbose = 1; 47 Paranoid = 1; 48 setbuf(stderr,0); 49 setbuf(stdout,0); 50 51 while((c=getopt(argc,argv,"ab:B:cd:Fm:pPqr:R:T:Vv")) != -1) { 52 switch (c) { | 1/* 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@login.dknet.dk> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 * --- 36 unchanged lines hidden (view full) --- 45 46 Verbose = 1; 47 Paranoid = 1; 48 setbuf(stderr,0); 49 setbuf(stdout,0); 50 51 while((c=getopt(argc,argv,"ab:B:cd:Fm:pPqr:R:T:Vv")) != -1) { 52 switch (c) { |
53 case 'c': CheckIt++; break; /* Only check it */ |
|
53 case 'p': Paranoid--; break; /* Less Paranoid */ 54 case 'P': Paranoid++; break; /* More Paranoid */ 55 case 'q': Verbose--; break; /* Quiet */ 56 case 'v': Verbose++; break; /* Verbose */ 57 case 'T': TmpDir = optarg; break; 58 case 'F': Force = 1; break; 59 case ':': 60 fprintf(stderr,"Option '%c' requires an argument.\n",optopt); --- 93 unchanged lines hidden (view full) --- 154 155 if(!p) { 156 rewind(f); 157 } else { 158 pclose(f); 159 f = popen(p,"r"); 160 } 161 | 54 case 'p': Paranoid--; break; /* Less Paranoid */ 55 case 'P': Paranoid++; break; /* More Paranoid */ 56 case 'q': Verbose--; break; /* Quiet */ 57 case 'v': Verbose++; break; /* Verbose */ 58 case 'T': TmpDir = optarg; break; 59 case 'F': Force = 1; break; 60 case ':': 61 fprintf(stderr,"Option '%c' requires an argument.\n",optopt); --- 93 unchanged lines hidden (view full) --- 155 156 if(!p) { 157 rewind(f); 158 } else { 159 pclose(f); 160 f = popen(p,"r"); 161 } 162 |
163 if(CheckIt) { 164 fprintf(stderr,"All ok\n"); 165 return 0; 166 } 167 |
|
162 if((i=Pass3(f))) 163 return i; 164 165 if(!p) { 166 fclose(f); 167 } else { 168 pclose(f); 169 Free(p); 170 } 171 | 168 if((i=Pass3(f))) 169 return i; 170 171 if(!p) { 172 fclose(f); 173 } else { 174 pclose(f); 175 Free(p); 176 } 177 |
178 fprintf(stderr,"All ok\n"); |
|
172 return 0; 173} | 179 return 0; 180} |