comparison recpt1/checksignal.c @ 116:38a793ac3d9d

- fix version string - tweak option definitions
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Thu, 25 Mar 2010 20:47:09 +0900
parents 91e71df37095
children 4d42c5c28557
comparison
equal deleted inserted replaced
115:91e71df37095 116:38a793ac3d9d
402 static thread_data tdata; 402 static thread_data tdata;
403 int result; 403 int result;
404 int option_index; 404 int option_index;
405 struct option long_options[] = { 405 struct option long_options[] = {
406 { "bell", 0, NULL, 'b'}, 406 { "bell", 0, NULL, 'b'},
407 { "help", 0, NULL, 'h'},
408 { "version", 0, NULL, 'v'},
409 { "list", 0, NULL, 'l'},
407 { "LNB", 1, NULL, 'n'}, 410 { "LNB", 1, NULL, 'n'},
408 { "lnb", 1, NULL, 'n'}, 411 { "lnb", 1, NULL, 'n'},
409 { "device", 1, NULL, 'd'}, 412 { "device", 1, NULL, 'd'},
410 { "help", 0, NULL, 'h'},
411 { "version", 0, NULL, 'v'},
412 { "list", 0, NULL, 'l'},
413 {0, 0, NULL, 0} /* terminate */ 413 {0, 0, NULL, 0} /* terminate */
414 }; 414 };
415 415
416 char *device = NULL; 416 char *device = NULL;
417 int val; 417 int val;
433 fprintf(stderr, "\n"); 433 fprintf(stderr, "\n");
434 exit(0); 434 exit(0);
435 break; 435 break;
436 case 'v': 436 case 'v':
437 fprintf(stderr, "%s %s\n", argv[0], version); 437 fprintf(stderr, "%s %s\n", argv[0], version);
438 fprintf(stderr, "recorder command for PT1/2 digital tuner.\n"); 438 fprintf(stderr, "signal check utility for PT1/2 digital tuner.\n");
439 exit(0); 439 exit(0);
440 break; 440 break;
441 case 'l': 441 case 'l':
442 show_channels(); 442 show_channels();
443 exit(0); 443 exit(0);