Mercurial > dropbear
comparison cli-session.c @ 433:c216212001fc
Fix for -pedantic -ansi compilation, change // to /**/, plus some signedness
and trailing-comma-in-array issues
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 16 Feb 2007 14:42:08 +0000 |
parents | d965110e3f5c |
children | c1e9c81d1d27 d4f32c3443ac e3db1f7a2e43 |
comparison
equal
deleted
inserted
replaced
432:517e76bdfb2d | 433:c216212001fc |
---|---|
213 | 213 |
214 case USERAUTH_SUCCESS_RCVD: | 214 case USERAUTH_SUCCESS_RCVD: |
215 | 215 |
216 if (cli_opts.backgrounded) { | 216 if (cli_opts.backgrounded) { |
217 int devnull; | 217 int devnull; |
218 // keeping stdin open steals input from the terminal and | 218 /* keeping stdin open steals input from the terminal and |
219 // is confusing, though stdout/stderr could be useful. | 219 is confusing, though stdout/stderr could be useful. */ |
220 devnull = open(_PATH_DEVNULL, O_RDONLY); | 220 devnull = open(_PATH_DEVNULL, O_RDONLY); |
221 if (devnull < 0) { | 221 if (devnull < 0) { |
222 dropbear_exit("opening /dev/null: %d %s", | 222 dropbear_exit("opening /dev/null: %d %s", |
223 errno, strerror(errno)); | 223 errno, strerror(errno)); |
224 } | 224 } |