summaryrefslogtreecommitdiffhomepage
path: root/cli-session.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-06-14 23:31:42 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-06-14 23:31:42 +0800
commit88ce30beb62716b000289d255deca50006880633 (patch)
treea15e89f770e72a4eef240e776082018ce5579594 /cli-session.c
parent723ec19eedd2618cd850e703519fd8432c67e44c (diff)
parentd260d5148e2eec62e7af8d6ec86dae438e4a0ec9 (diff)
merge from main
--HG-- branch : fuzz
Diffstat (limited to 'cli-session.c')
-rw-r--r--cli-session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli-session.c b/cli-session.c
index d89416f..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[] = {
@@ -287,7 +287,7 @@ static void cli_sessionloop() {
int devnull;
/* keeping stdin open steals input from the terminal and
is confusing, though stdout/stderr could be useful. */
- devnull = open(_PATH_DEVNULL, O_RDONLY);
+ devnull = open(DROPBEAR_PATH_DEVNULL, O_RDONLY);
if (devnull < 0) {
dropbear_exit("Opening /dev/null: %d %s",
errno, strerror(errno));