Skip to content

Commit

Permalink
Style fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dag-erling committed Sep 17, 2018
1 parent a7a1326 commit 7ed65d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/kexkill.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ kk_input(struct kk_conn *conn)
len =
(uint8_t)conn->buf[0] << 24 |
(uint8_t)conn->buf[1] << 16 |
(uint8_t)conn->buf[2] << 8 |
(uint8_t)conn->buf[2] << 8 |
(uint8_t)conn->buf[3];
if (len + 4 > sizeof conn->buf) {
warnx("[%02x] oversize packet (%zu bytes)", conn->fd, len);
Expand Down Expand Up @@ -359,7 +359,8 @@ static int
kexkill(struct sockaddr *sa, socklen_t salen)
{
struct pollfd *pfd;
int i, k, n, ret;
unsigned int i, k, n;
int ret;

if ((pfd = calloc(maxconns, sizeof *pfd)) == NULL)
err(1, "calloc()");
Expand Down

0 comments on commit 7ed65d6

Please sign in to comment.