diff options
Diffstat (limited to 'rdate.c')
-rw-r--r-- | rdate.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -95,14 +95,14 @@ int rdate_main(int argc, char **argv) | |||
95 | /* Interpret command line args */ | 95 | /* Interpret command line args */ |
96 | /* do special-case option parsing */ | 96 | /* do special-case option parsing */ |
97 | if (argv[1] && (strcmp(argv[1], "--help") == 0)) | 97 | if (argv[1] && (strcmp(argv[1], "--help") == 0)) |
98 | usage(rdate_usage); | 98 | show_usage(); |
99 | 99 | ||
100 | /* do normal option parsing */ | 100 | /* do normal option parsing */ |
101 | while ((opt = getopt(argc, argv, "Hsp")) > 0) { | 101 | while ((opt = getopt(argc, argv, "Hsp")) > 0) { |
102 | switch (opt) { | 102 | switch (opt) { |
103 | default: | 103 | default: |
104 | case 'H': | 104 | case 'H': |
105 | usage(rdate_usage); | 105 | show_usage(); |
106 | break; | 106 | break; |
107 | case 's': | 107 | case 's': |
108 | setdate++; | 108 | setdate++; |
@@ -117,7 +117,7 @@ int rdate_main(int argc, char **argv) | |||
117 | if (printdate==0 && setdate==0) setdate++; | 117 | if (printdate==0 && setdate==0) setdate++; |
118 | 118 | ||
119 | if (optind == argc) { | 119 | if (optind == argc) { |
120 | usage(rdate_usage); | 120 | show_usage(); |
121 | } | 121 | } |
122 | 122 | ||
123 | if ((time= askremotedate(argv[optind])) == (time_t)-1) { | 123 | if ((time= askremotedate(argv[optind])) == (time_t)-1) { |