diff options
author | brian <brian@FreeBSD.org> | 1998-06-27 23:48:54 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-06-27 23:48:54 +0000 |
commit | ecefb9d1a210a6c86638b396ea5ece55c433bc66 (patch) | |
tree | 0a77c0e67b7da6215327359880d61c222fd24aa7 /usr.sbin/ppp/id.c | |
parent | 40b850dd415ad2adcddb88549067b23762bce91a (diff) | |
download | FreeBSD-src-ecefb9d1a210a6c86638b396ea5ece55c433bc66.zip FreeBSD-src-ecefb9d1a210a6c86638b396ea5ece55c433bc66.tar.gz |
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.
Diffstat (limited to 'usr.sbin/ppp/id.c')
-rw-r--r-- | usr.sbin/ppp/id.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <sys/types.h> @@ -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; } |