[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.58 and 1.59

version 1.58, 2015/04/01 20:28:04 version 1.59, 2015/04/01 20:58:13
Line 143 
Line 143 
 static bool  static bool
 sort_modifier_empty(struct sort_mods *sm)  sort_modifier_empty(struct sort_mods *sm)
 {  {
   
         if (sm == NULL)          if (sm == NULL)
                 return true;                  return true;
         return !(sm->Mflag || sm->Vflag || sm->nflag || sm->gflag ||          return !(sm->Mflag || sm->Vflag || sm->nflag || sm->gflag ||
Line 156 
Line 155 
 static __dead void  static __dead void
 usage(int exit_val)  usage(int exit_val)
 {  {
   
         fprintf(exit_val ? stderr : stdout,          fprintf(exit_val ? stderr : stdout,
             "usage: %s [-bCcdfgHhiMmnRrsuVz] [-k field1[,field2]] [-o output] "              "usage: %s [-bCcdfgHhiMmnRrsuVz] [-k field1[,field2]] [-o output] "
             "[-S size]\n\t[-T dir] [-t char] [file ...]\n", getprogname());              "[-S size]\n\t[-T dir] [-t char] [file ...]\n", getprogname());
Line 242 
Line 240 
 static void  static void
 conv_mbtowc(wchar_t *wc, const char *c, const wchar_t def)  conv_mbtowc(wchar_t *wc, const char *c, const wchar_t def)
 {  {
   
         if (wc && c) {          if (wc && c) {
                 int res;                  int res;
   
Line 324 
Line 321 
 static unsigned long long  static unsigned long long
 parse_memory_buffer_value(const char *value)  parse_memory_buffer_value(const char *value)
 {  {
   
         if (value == NULL)          if (value == NULL)
                 return available_free_memory;                  return available_free_memory;
         else {          else {
Line 382 
Line 378 
 static void  static void
 sig_handler(int sig __unused)  sig_handler(int sig __unused)
 {  {
   
         clear_tmp_files();          clear_tmp_files();
         _exit(2);          _exit(2);
 }  }
Line 416 
Line 411 
 static void  static void
 unknown(const char *what)  unknown(const char *what)
 {  {
   
         errx(2, "Unknown feature: %s", what);          errx(2, "Unknown feature: %s", what);
 }  }
   
Line 457 
Line 451 
 static void  static void
 set_sort_opts(void)  set_sort_opts(void)
 {  {
   
         memset(&default_sort_mods_object, 0,          memset(&default_sort_mods_object, 0,
             sizeof(default_sort_mods_object));              sizeof(default_sort_mods_object));
         memset(&sort_opts_vals, 0, sizeof(sort_opts_vals));          memset(&sort_opts_vals, 0, sizeof(sort_opts_vals));
Line 471 
Line 464 
 static bool  static bool
 set_sort_modifier(struct sort_mods *sm, int c)  set_sort_modifier(struct sort_mods *sm, int c)
 {  {
   
         if (sm) {          if (sm) {
                 switch (c){                  switch (c){
                 case 'b':                  case 'b':

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59