Mercurial > dropbear
comparison cli-runopts.c @ 1286:7d02b83c61fd coverity
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 18 Mar 2016 22:47:33 +0800 |
parents | 9169e4e7cbee |
children | 750ec4ec4cbe |
comparison
equal
deleted
inserted
replaced
1261:770e14154da3 | 1286:7d02b83c61fd |
---|---|
31 #include "tcpfwd.h" | 31 #include "tcpfwd.h" |
32 #include "list.h" | 32 #include "list.h" |
33 | 33 |
34 cli_runopts cli_opts; /* GLOBAL */ | 34 cli_runopts cli_opts; /* GLOBAL */ |
35 | 35 |
36 static void printhelp(); | 36 static void printhelp(void); |
37 static void parse_hostname(const char* orighostarg); | 37 static void parse_hostname(const char* orighostarg); |
38 static void parse_multihop_hostname(const char* orighostarg, const char* argv0); | 38 static void parse_multihop_hostname(const char* orighostarg, const char* argv0); |
39 static void fill_own_user(); | 39 static void fill_own_user(void); |
40 #ifdef ENABLE_CLI_PUBKEY_AUTH | 40 #ifdef ENABLE_CLI_PUBKEY_AUTH |
41 static void loadidentityfile(const char* filename, int warnfail); | 41 static void loadidentityfile(const char* filename, int warnfail); |
42 #endif | 42 #endif |
43 #ifdef ENABLE_CLI_ANYTCPFWD | 43 #ifdef ENABLE_CLI_ANYTCPFWD |
44 static void addforward(const char* str, m_list *fwdlist); | 44 static void addforward(const char* str, m_list *fwdlist); |
313 print_version(); | 313 print_version(); |
314 exit(EXIT_SUCCESS); | 314 exit(EXIT_SUCCESS); |
315 break; | 315 break; |
316 case 'b': | 316 case 'b': |
317 next = &dummy; | 317 next = &dummy; |
318 /* FALLTHROUGH */ | |
318 default: | 319 default: |
319 fprintf(stderr, | 320 fprintf(stderr, |
320 "WARNING: Ignoring unknown option -%c\n", c); | 321 "WARNING: Ignoring unknown option -%c\n", c); |
321 break; | 322 break; |
322 } /* Switch */ | 323 } /* Switch */ |