projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace gettimeofday() by clock_gettime().
[paraslash.git]
/
udp_send.c
diff --git
a/udp_send.c
b/udp_send.c
index
bc23831
..
b1da316
100644
(file)
--- a/
udp_send.c
+++ b/
udp_send.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2005-201
1
Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-201
3
Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
@@
-8,7
+8,6
@@
#include <regex.h>
#include <regex.h>
-#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/udp.h>
#include <net/if.h>
#include <sys/socket.h>
#include <netinet/udp.h>
#include <net/if.h>
@@
-288,7
+287,7
@@
static void udp_send_fec(struct sender_client *sc, char *buf, size_t len)
ret = udp_check_socket_state(sc);
if (ret < 0)
goto fail;
ret = udp_check_socket_state(sc);
if (ret < 0)
goto fail;
- ret =
write_nonblock
(sc->fd, buf, len);
+ ret =
xwrite
(sc->fd, buf, len);
if (ret == -ERRNO_TO_PARA_ERROR(ECONNREFUSED)) {
/*
* Happens if meanwhile an ICMP Destination / Port Unreachable
if (ret == -ERRNO_TO_PARA_ERROR(ECONNREFUSED)) {
/*
* Happens if meanwhile an ICMP Destination / Port Unreachable