Changeset 4512

Show
Ignore:
Timestamp:
06/28/07 19:47:18 (6 years ago)
Author:
khali
Message:

Drop the --generic option. This is the default now, so the option has
no effect.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/prog/sensors/main.c

    r4503 r4512  
    5656sensors_chip_name chips[CHIPS_MAX]; 
    5757int chips_count=0; 
    58 int do_sets, do_unknown, fahrenheit, hide_adapter, hide_unknown, do_generic; 
     58int do_sets, do_unknown, fahrenheit, hide_adapter, hide_unknown; 
    5959 
    6060char degstr[5]; /* store the correct string to print degrees */ 
     
    7676  printf("  -u, --unknown         Treat chips as unknown ones (testing only)\n"); 
    7777  printf("  -v, --version         Display the program version\n"); 
    78   printf("  -g, --generic         Use generic printing routine for all chips (testing only)\n");  
    7978  printf("\n"); 
    8079  printf("Use `-' after `-c' to read the config file from stdin.\n"); 
     
    162161    { "config-file", required_argument, NULL, 'c' }, 
    163162    { "unknown", no_argument, NULL, 'u' }, 
    164     { "generic", no_argument, NULL, 'g'}, 
    165163    { 0,0,0,0 } 
    166164  }; 
     
    172170  hide_adapter = 0; 
    173171  hide_unknown = 0; 
    174   do_generic = 0; 
    175172  while (1) { 
    176     c = getopt_long(argc, argv, "hsvfAUc:ug", long_opts, NULL); 
     173    c = getopt_long(argc, argv, "hsvfAUc:u", long_opts, NULL); 
    177174    if (c == EOF) 
    178175      break; 
     
    205202    case 'u': 
    206203      do_unknown = 1; 
    207       break; 
    208     case 'g': 
    209       do_generic = 1; 
    210204      break; 
    211205    default: