changeset 1404:e8f67918fdc9

when pointer, use NULL instead of 0
author Francois Perrad <francois.perrad@gadz.org>
date Fri, 02 Jun 2017 18:14:31 +0200
parents ae6887d9ab46
children 2688fec5602c
files cli-runopts.c cli-session.c dropbearkey.c svr-runopts.c svr-session.c
diffstat 5 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/cli-runopts.c	Sat Nov 19 15:07:42 2016 +0100
+++ b/cli-runopts.c	Fri Jun 02 18:14:31 2017 +0200
@@ -106,7 +106,7 @@
 
 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
--- a/cli-session.c	Sat Nov 19 15:07:42 2016 +0100
+++ b/cli-session.c	Fri Jun 02 18:14:31 2017 +0200
@@ -81,7 +81,7 @@
 	{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[] = {
--- a/dropbearkey.c	Sat Nov 19 15:07:42 2016 +0100
+++ b/dropbearkey.c	Fri Jun 02 18:14:31 2017 +0200
@@ -134,7 +134,7 @@
 #endif
 
 	int i;
-	char ** next = 0;
+	char ** next = NULL;
 	char * filename = NULL;
 	enum signkey_type keytype = DROPBEAR_SIGNKEY_NONE;
 	char * typetext = NULL;
--- a/svr-runopts.c	Sat Nov 19 15:07:42 2016 +0100
+++ b/svr-runopts.c	Fri Jun 02 18:14:31 2017 +0200
@@ -114,7 +114,7 @@
 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 @@
 			if (*next == NULL) {
 				dropbear_exit("Invalid null argument");
 			}
-			next = 0x00;
+			next = NULL;
 
 			if (keyfile) {
 				addhostkey(keyfile);
--- a/svr-session.c	Sat Nov 19 15:07:42 2016 +0100
+++ b/svr-session.c	Fri Jun 02 18:14:31 2017 +0200
@@ -66,7 +66,7 @@
 	{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[] = {