diff options
Diffstat (limited to 'util-linux/rdate.c')
-rw-r--r-- | util-linux/rdate.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/util-linux/rdate.c b/util-linux/rdate.c index 80b37de37..7c8d54117 100644 --- a/util-linux/rdate.c +++ b/util-linux/rdate.c | |||
@@ -101,7 +101,6 @@ int rdate_main(int argc, char **argv) | |||
101 | default: | 101 | default: |
102 | case 'H': | 102 | case 'H': |
103 | usage(rdate_usage); | 103 | usage(rdate_usage); |
104 | return(FALSE); | ||
105 | break; | 104 | break; |
106 | case 's': | 105 | case 's': |
107 | setdate++; | 106 | setdate++; |
@@ -117,11 +116,10 @@ int rdate_main(int argc, char **argv) | |||
117 | 116 | ||
118 | if (optind == argc) { | 117 | if (optind == argc) { |
119 | usage(rdate_usage); | 118 | usage(rdate_usage); |
120 | return(FALSE); | ||
121 | } | 119 | } |
122 | 120 | ||
123 | if ((time= askremotedate(argv[optind])) == (time_t)-1) { | 121 | if ((time= askremotedate(argv[optind])) == (time_t)-1) { |
124 | return(FALSE); | 122 | return EXIT_FAILURE; |
125 | } | 123 | } |
126 | if (setdate) { | 124 | if (setdate) { |
127 | if (stime(&time) < 0) | 125 | if (stime(&time) < 0) |
@@ -131,5 +129,5 @@ int rdate_main(int argc, char **argv) | |||
131 | fprintf(stdout, "%s", ctime(&time)); | 129 | fprintf(stdout, "%s", ctime(&time)); |
132 | } | 130 | } |
133 | 131 | ||
134 | return(TRUE); | 132 | return EXIT_SUCCESS; |
135 | } | 133 | } |