summaryrefslogtreecommitdiffhomepage
path: root/svr-runopts.c
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2017-06-02 18:14:31 +0200
committerFrancois Perrad <francois.perrad@gadz.org>2017-06-02 18:14:31 +0200
commit5f76e4c1ede157ca5a51c2189984e8ee57778d86 (patch)
tree079f7af36bf97dfa3bbe15650b0643351c045b34 /svr-runopts.c
parent206b9cea0d1920d3eec00807dbb1af373493baaa (diff)
when pointer, use NULL instead of 0
Diffstat (limited to 'svr-runopts.c')
-rw-r--r--svr-runopts.c4
1 files changed, 2 insertions, 2 deletions
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);