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

Diff for /src/usr.bin/sort/sort.c between version 1.74 and 1.75

version 1.74, 2015/04/02 21:09:51 version 1.75, 2015/04/03 10:07:25
Line 856 
Line 856 
 int  int
 main(int argc, char *argv[])  main(int argc, char *argv[])
 {  {
         char *outfile, *real_outfile;          char *outfile, *real_outfile, *sflag;
         int c, result;          int c, result;
         size_t i;          size_t i;
         bool mef_flags[NUMBER_OF_MUTUALLY_EXCLUSIVE_FLAGS] =          bool mef_flags[NUMBER_OF_MUTUALLY_EXCLUSIVE_FLAGS] =
Line 865 
Line 865 
         result = 0;          result = 0;
         outfile = "-";          outfile = "-";
         real_outfile = NULL;          real_outfile = NULL;
           sflag = NULL;
   
         struct sort_mods *sm = &default_sort_mods_object;          struct sort_mods *sm = &default_sort_mods_object;
   
Line 930 
Line 931 
                                 sort_opts_vals.sflag = true;                                  sort_opts_vals.sflag = true;
                                 break;                                  break;
                         case 'S':                          case 'S':
                                 available_free_memory =                                  sflag = optarg;
                                     parse_memory_buffer_value(optarg);  
                                 break;                                  break;
                         case 'T':                          case 'T':
                                 tmpdir = optarg;                                  tmpdir = optarg;
Line 1042 
Line 1042 
   
         argc -= optind;          argc -= optind;
         argv += optind;          argv += optind;
   
           if (sflag != NULL)
                   available_free_memory = parse_memory_buffer_value(sflag);
   
         if (keys_num == 0) {          if (keys_num == 0) {
                 keys_num = 1;                  keys_num = 1;

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.75