From 5f76e4c1ede157ca5a51c2189984e8ee57778d86 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Fri, 2 Jun 2017 18:14:31 +0200 Subject: [PATCH] when pointer, use NULL instead of 0 --- cli-runopts.c | 2 +- cli-session.c | 2 +- dropbearkey.c | 2 +- svr-runopts.c | 4 ++-- svr-session.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cli-runopts.c b/cli-runopts.c index 4a89ba3..ca50709 100644 --- a/cli-runopts.c +++ b/cli-runopts.c @@ -106,7 +106,7 @@ static void printhelp() { void cli_getopts(int argc, char ** argv) { unsigned int i, j; - char ** next = 0; + char ** next = NULL; enum { OPT_EXTENDED_OPTIONS, #if DROPBEAR_CLI_PUBKEY_AUTH diff --git a/cli-session.c b/cli-session.c index d8525ae..f1115d6 100644 --- a/cli-session.c +++ b/cli-session.c @@ -81,7 +81,7 @@ static const packettype cli_packettypes[] = { {SSH_MSG_REQUEST_SUCCESS, ignore_recv_response}, {SSH_MSG_REQUEST_FAILURE, ignore_recv_response}, #endif - {0, 0} /* End */ + {0, NULL} /* End */ }; static const struct ChanType *cli_chantypes[] = { diff --git a/dropbearkey.c b/dropbearkey.c index a0d315b..5cb12ef 100644 --- a/dropbearkey.c +++ b/dropbearkey.c @@ -134,7 +134,7 @@ int main(int argc, char ** argv) { #endif int i; - char ** next = 0; + char ** next = NULL; char * filename = NULL; enum signkey_type keytype = DROPBEAR_SIGNKEY_NONE; char * typetext = NULL; diff --git a/svr-runopts.c b/svr-runopts.c index e6dc8a8..dea4a55 100644 --- a/svr-runopts.c +++ b/svr-runopts.c @@ -114,7 +114,7 @@ static void printhelp(const char * progname) { void svr_getopts(int argc, char ** argv) { unsigned int i, j; - char ** next = 0; + char ** next = NULL; int nextisport = 0; char* recv_window_arg = NULL; char* keepalive_arg = NULL; @@ -289,7 +289,7 @@ void svr_getopts(int argc, char ** argv) { if (*next == NULL) { dropbear_exit("Invalid null argument"); } - next = 0x00; + next = NULL; if (keyfile) { addhostkey(keyfile); diff --git a/svr-session.c b/svr-session.c index febe79a..297d07f 100644 --- a/svr-session.c +++ b/svr-session.c @@ -66,7 +66,7 @@ static const packettype svr_packettypes[] = { {SSH_MSG_CHANNEL_OPEN_CONFIRMATION, recv_msg_channel_open_confirmation}, {SSH_MSG_CHANNEL_OPEN_FAILURE, recv_msg_channel_open_failure}, #endif - {0, 0} /* End */ + {0, NULL} /* End */ }; static const struct ChanType *svr_chantypes[] = {