chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regress/: Include the protocol family in socket(2) lines.
[adns]
/
regress
/
hrecord.c
diff --git
a/regress/hrecord.c
b/regress/hrecord.c
index 88e24a41f48925918a5601747e178098fd2df027..c059434e7ac522e951a40535da38a99095921fff 100644
(file)
--- a/
regress/hrecord.c
+++ b/
regress/hrecord.c
@@
-81,9
+81,9
@@
int Hpoll( struct pollfd *fds , int nfds , int timeout ) {
#endif
int Hsocket( int domain , int type , int protocol ) {
int r, e;
#endif
int Hsocket( int domain , int type , int protocol ) {
int r, e;
-
Tmust("socket","domain",domain==AF_INET
);
+
Tmust("socket","domain",domain==PF_INET || domain==PF_INET6
);
Tmust("socket","type",type==SOCK_STREAM || type==SOCK_DGRAM);
Tmust("socket","type",type==SOCK_STREAM || type==SOCK_DGRAM);
- Qsocket( type );
+ Qsocket(
domain ,
type );
r= socket( domain , type , protocol );
e= errno;
vb.used= 0;
r= socket( domain , type , protocol );
e= errno;
vb.used= 0;