[BACK]Return to patch.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / patch

Diff for /src/usr.bin/patch/patch.c between version 1.11 and 1.12

version 1.11, 1998/11/25 00:30:26 version 1.12, 1999/08/31 21:29:19
Line 68 
Line 68 
     int hunk = 0;      int hunk = 0;
     int failed = 0;      int failed = 0;
     int failtotal = 0;      int failtotal = 0;
       int patch_seen = 0;
     int i;      int i;
   
     setbuf(stderr, serrbuf);      setbuf(stderr, serrbuf);
Line 144 
Line 145 
         there_is_another_patch();          there_is_another_patch();
         reinitialize_almost_everything()          reinitialize_almost_everything()
     ) {                                 /* for each patch in patch file */      ) {                                 /* for each patch in patch file */
           patch_seen = TRUE;
   
         if (outname == Nullch)          if (outname == Nullch)
             outname = savestr(filearg[0]);              outname = savestr(filearg[0]);
Line 338 
Line 340 
         }          }
         set_signals(1);          set_signals(1);
     }      }
       if (!patch_seen)
           failtotal++;
     my_exit(failtotal);      my_exit(failtotal);
     /* NOTREACHED */      /* NOTREACHED */
 }  }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12