projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle TAP-Win32 immediate reads correctly.
[tinc]
/
src
/
sptps_speed.c
diff --git
a/src/sptps_speed.c
b/src/sptps_speed.c
index
953d7f5
..
1ba00f2
100644
(file)
--- a/
src/sptps_speed.c
+++ b/
src/sptps_speed.c
@@
-18,6
+18,7
@@
*/
#include "system.h"
*/
#include "system.h"
+#include "utils.h"
#include <poll.h>
#include <poll.h>
@@
-121,7
+122,7
@@
int main(int argc, char *argv[]) {
int fd[2];
if(socketpair(AF_UNIX, SOCK_STREAM, 0, fd)) {
int fd[2];
if(socketpair(AF_UNIX, SOCK_STREAM, 0, fd)) {
- fprintf(stderr, "Could not create a UNIX socket pair: %s\n", s
trerror(
errno));
+ fprintf(stderr, "Could not create a UNIX socket pair: %s\n", s
ockstrerror(sock
errno));
return 1;
}
return 1;
}
@@
-174,7
+175,7
@@
int main(int argc, char *argv[]) {
close(fd[1]);
if(socketpair(AF_UNIX, SOCK_DGRAM, 0, fd)) {
close(fd[1]);
if(socketpair(AF_UNIX, SOCK_DGRAM, 0, fd)) {
- fprintf(stderr, "Could not create a UNIX socket pair: %s\n", s
trerror(
errno));
+ fprintf(stderr, "Could not create a UNIX socket pair: %s\n", s
ockstrerror(sock
errno));
return 1;
}
return 1;
}