~mdw
/
fwd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c9d2d52
)
Switch over to using `size_t' for socket address lengths.
author
mdw
<mdw>
Tue, 1 Aug 2000 17:59:56 +0000
(17:59 +0000)
committer
mdw
<mdw>
Tue, 1 Aug 2000 17:59:56 +0000
(17:59 +0000)
inet.c
patch
|
blob
|
blame
|
history
un.c
patch
|
blob
|
blame
|
history
diff --git
a/inet.c
b/inet.c
index
7aa8e30
..
a9a559e
100644
(file)
--- a/
inet.c
+++ b/
inet.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: inet.c,v 1.
2 1999/07/27 18:30:53
mdw Exp $
+ * $Id: inet.c,v 1.
3 2000/08/01 17:59:56
mdw Exp $
*
* Protocol specific definitions for IPv4 sockets
*
*
* Protocol specific definitions for IPv4 sockets
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: inet.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: inet.c,v $
+ * Revision 1.3 2000/08/01 17:59:56 mdw
+ * Switch over to using `size_t' for socket address lengths.
+ *
* Revision 1.2 1999/07/27 18:30:53 mdw
* Various minor portability fixes.
*
* Revision 1.2 1999/07/27 18:30:53 mdw
* Various minor portability fixes.
*
@@
-244,7
+247,7
@@
static reffd *inet_accept(int fd, addr_opts *ao, const char *desc)
inet_opts *io = (inet_opts *)ao;
int nfd;
id_req q;
inet_opts *io = (inet_opts *)ao;
int nfd;
id_req q;
-
in
t lsinsz = sizeof(q.lsin), rsinsz = sizeof(q.rsin);
+
size_
t lsinsz = sizeof(q.lsin), rsinsz = sizeof(q.rsin);
/* --- Accept the new connection --- */
/* --- Accept the new connection --- */
diff --git
a/un.c
b/un.c
index
5438617
..
8740b81
100644
(file)
--- a/
un.c
+++ b/
un.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: un.c,v 1.
3 2000/08/01 17:58:32
mdw Exp $
+ * $Id: un.c,v 1.
4 2000/08/01 17:59:56
mdw Exp $
*
* Protocol specific definitions for Unix-domain sockets
*
*
* Protocol specific definitions for Unix-domain sockets
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: un.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: un.c,v $
+ * Revision 1.4 2000/08/01 17:59:56 mdw
+ * Switch over to using `size_t' for socket address lengths.
+ *
* Revision 1.3 2000/08/01 17:58:32 mdw
* Remove unnecessary <ctype.h> header.
*
* Revision 1.3 2000/08/01 17:58:32 mdw
* Remove unnecessary <ctype.h> header.
*
@@
-158,7
+161,7
@@
static reffd *un_accept(int fd, addr_opts *ao, const char *desc)
{
char buf[PATH_MAX + sizeof(struct sockaddr)];
struct sockaddr_un *sun = (struct sockaddr_un *)buf;
{
char buf[PATH_MAX + sizeof(struct sockaddr)];
struct sockaddr_un *sun = (struct sockaddr_un *)buf;
-
in
t sunsz = sizeof(buf);
+
size_
t sunsz = sizeof(buf);
if ((nfd = accept(fd, (struct sockaddr *)sun, &sunsz)) < 0)
return (0);
if ((nfd = accept(fd, (struct sockaddr *)sun, &sunsz)) < 0)
return (0);