Browse Source

wpos in struct buf_read and datalen in imsg_get should be size_t and not

ssize_t
From: Alexander von Gernler <grunk@pestilenz.org>
OPENBSD_3_8
henning 19 years ago
parent
commit
e0f325591a
2 changed files with 4 additions and 5 deletions
  1. +2
    -3
      src/usr.sbin/ntpd/imsg.c
  2. +2
    -2
      src/usr.sbin/ntpd/ntpd.h

+ 2
- 3
src/usr.sbin/ntpd/imsg.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: imsg.c,v 1.9 2005/03/09 14:07:00 henning Exp $ */
/* $OpenBSD: imsg.c,v 1.10 2005/03/23 10:42:04 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -57,8 +57,7 @@ imsg_read(struct imsgbuf *ibuf)
int
imsg_get(struct imsgbuf *ibuf, struct imsg *imsg)
{
ssize_t datalen = 0;
size_t av, left;
size_t av, left, datalen;
av = ibuf->r.wpos;


+ 2
- 2
src/usr.sbin/ntpd/ntpd.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: ntpd.h,v 1.53 2005/02/03 10:53:33 dtucker Exp $ */
/* $OpenBSD: ntpd.h,v 1.54 2005/03/23 10:42:04 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -141,7 +141,7 @@ struct msgbuf {
};
struct buf_read {
ssize_t wpos;
size_t wpos;
u_char buf[READ_BUF_SIZE];
u_char *rptr;
};


Loading…
Cancel
Save