From ecefb9d1a210a6c86638b396ea5ece55c433bc66 Mon Sep 17 00:00:00 2001 From: brian Date: Sat, 27 Jun 1998 23:48:54 +0000 Subject: o Fix remaining sizeof problems for 64 bit machines. o Allow ``set ....'' when we have multiple links but aren't in multilink mode. o Do a TLS when we receive a ``Open'' event in ``Closed'' state, despite the rfc state transition table. This is clearly an error in the RFC as TLS cannot have yet been called (without TLF) in the ``Closed'' state. I've posted a message to comp.protocols.ppp for confirmation. --- usr.sbin/ppp/id.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin/ppp/id.c') diff --git a/usr.sbin/ppp/id.c b/usr.sbin/ppp/id.c index 406c382..a602ef6 100644 --- a/usr.sbin/ppp/id.c +++ b/usr.sbin/ppp/id.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: id.c,v 1.9 1998/05/28 23:15:36 brian Exp $ + * $Id: id.c,v 1.10 1998/05/29 18:33:08 brian Exp $ */ #include @@ -153,7 +153,7 @@ ID0write(int fd, const void *data, size_t len) ID0set0(); ret = write(fd, data, len); - log_Printf(LogID0, "%d = write(%d, data, %d)\n", ret, fd, len); + log_Printf(LogID0, "%d = write(%d, data, %ld)\n", ret, fd, (long)len); ID0setuser(); return ret; } @@ -236,7 +236,7 @@ ID0bind_un(int s, const struct sockaddr_un *name) ID0set0(); result = bind(s, (const struct sockaddr *)name, sizeof *name); log_Printf(LogID0, "%d = bind(%d, \"%s\", %d)\n", - result, s, name->sun_path, sizeof *name); + result, s, name->sun_path, (int)sizeof(*name)); ID0setuser(); return result; } @@ -249,7 +249,7 @@ ID0connect_un(int s, const struct sockaddr_un *name) ID0set0(); result = connect(s, (const struct sockaddr *)name, sizeof *name); log_Printf(LogID0, "%d = connect(%d, \"%s\", %d)\n", - result, s, name->sun_path, sizeof *name); + result, s, name->sun_path, (int)sizeof(*name)); ID0setuser(); return result; } -- cgit v1.1