Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Subject: [PATCH] fix minicom -h/-v return value is not 0 |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | |
| 5 | Signed-off-by: Lu Chong <Chong.Lu@windriver.com> |
| 6 | |
| 7 | --- |
| 8 | src/minicom.c | 6 ++---- |
| 9 | 1 file changed, 2 insertions(+), 4 deletions(-) |
| 10 | |
| 11 | diff --git a/src/minicom.c b/src/minicom.c |
| 12 | index e1a557b..730da7c 100644 |
| 13 | --- a/src/minicom.c |
| 14 | +++ b/src/minicom.c |
| 15 | @@ -1166,15 +1166,13 @@ int main(int argc, char **argv) |
| 16 | "modify it under the terms of the GNU General Public License\n" |
| 17 | "as published by the Free Software Foundation; either version\n" |
| 18 | "2 of the License, or (at your option) any later version.\n\n"); |
| 19 | - exit(1); |
| 20 | - break; |
| 21 | + exit(0); |
| 22 | case 's': /* setup mode */ |
| 23 | dosetup = 1; |
| 24 | break; |
| 25 | case 'h': |
| 26 | helpthem(); |
| 27 | - exit(1); |
| 28 | - break; |
| 29 | + exit(0); |
| 30 | case 'p': /* Pseudo terminal to use. */ |
| 31 | if (strncmp(optarg, "/dev/", 5) == 0) |
| 32 | optarg += 5; |
| 33 | -- |
| 34 | 1.7.9.5 |
| 35 | |