mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 13:21:15 +00:00
when pointer, use NULL instead of 0
This commit is contained in:
parent
206b9cea0d
commit
5f76e4c1ed
@ -106,7 +106,7 @@ static void printhelp() {
|
|||||||
|
|
||||||
void cli_getopts(int argc, char ** argv) {
|
void cli_getopts(int argc, char ** argv) {
|
||||||
unsigned int i, j;
|
unsigned int i, j;
|
||||||
char ** next = 0;
|
char ** next = NULL;
|
||||||
enum {
|
enum {
|
||||||
OPT_EXTENDED_OPTIONS,
|
OPT_EXTENDED_OPTIONS,
|
||||||
#if DROPBEAR_CLI_PUBKEY_AUTH
|
#if DROPBEAR_CLI_PUBKEY_AUTH
|
||||||
|
@ -81,7 +81,7 @@ static const packettype cli_packettypes[] = {
|
|||||||
{SSH_MSG_REQUEST_SUCCESS, ignore_recv_response},
|
{SSH_MSG_REQUEST_SUCCESS, ignore_recv_response},
|
||||||
{SSH_MSG_REQUEST_FAILURE, ignore_recv_response},
|
{SSH_MSG_REQUEST_FAILURE, ignore_recv_response},
|
||||||
#endif
|
#endif
|
||||||
{0, 0} /* End */
|
{0, NULL} /* End */
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct ChanType *cli_chantypes[] = {
|
static const struct ChanType *cli_chantypes[] = {
|
||||||
|
@ -134,7 +134,7 @@ int main(int argc, char ** argv) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
char ** next = 0;
|
char ** next = NULL;
|
||||||
char * filename = NULL;
|
char * filename = NULL;
|
||||||
enum signkey_type keytype = DROPBEAR_SIGNKEY_NONE;
|
enum signkey_type keytype = DROPBEAR_SIGNKEY_NONE;
|
||||||
char * typetext = NULL;
|
char * typetext = NULL;
|
||||||
|
@ -114,7 +114,7 @@ static void printhelp(const char * progname) {
|
|||||||
void svr_getopts(int argc, char ** argv) {
|
void svr_getopts(int argc, char ** argv) {
|
||||||
|
|
||||||
unsigned int i, j;
|
unsigned int i, j;
|
||||||
char ** next = 0;
|
char ** next = NULL;
|
||||||
int nextisport = 0;
|
int nextisport = 0;
|
||||||
char* recv_window_arg = NULL;
|
char* recv_window_arg = NULL;
|
||||||
char* keepalive_arg = NULL;
|
char* keepalive_arg = NULL;
|
||||||
@ -289,7 +289,7 @@ void svr_getopts(int argc, char ** argv) {
|
|||||||
if (*next == NULL) {
|
if (*next == NULL) {
|
||||||
dropbear_exit("Invalid null argument");
|
dropbear_exit("Invalid null argument");
|
||||||
}
|
}
|
||||||
next = 0x00;
|
next = NULL;
|
||||||
|
|
||||||
if (keyfile) {
|
if (keyfile) {
|
||||||
addhostkey(keyfile);
|
addhostkey(keyfile);
|
||||||
|
@ -66,7 +66,7 @@ static const packettype svr_packettypes[] = {
|
|||||||
{SSH_MSG_CHANNEL_OPEN_CONFIRMATION, recv_msg_channel_open_confirmation},
|
{SSH_MSG_CHANNEL_OPEN_CONFIRMATION, recv_msg_channel_open_confirmation},
|
||||||
{SSH_MSG_CHANNEL_OPEN_FAILURE, recv_msg_channel_open_failure},
|
{SSH_MSG_CHANNEL_OPEN_FAILURE, recv_msg_channel_open_failure},
|
||||||
#endif
|
#endif
|
||||||
{0, 0} /* End */
|
{0, NULL} /* End */
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct ChanType *svr_chantypes[] = {
|
static const struct ChanType *svr_chantypes[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user