aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/gnunet-helper-vpn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpn/gnunet-helper-vpn.c')
-rw-r--r--src/vpn/gnunet-helper-vpn.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/vpn/gnunet-helper-vpn.c b/src/vpn/gnunet-helper-vpn.c
index 92e7d423e..f01b873eb 100644
--- a/src/vpn/gnunet-helper-vpn.c
+++ b/src/vpn/gnunet-helper-vpn.c
@@ -395,37 +395,6 @@ outer:
395} 395}
396 396
397 397
398
399/**
400 * @brief sets the socket to nonblocking
401 *
402 * @param fd the socket
403 */
404static void
405setnonblocking (int fd)
406{
407 int opts;
408
409 if (-1 == (opts = fcntl (fd, F_GETFL)))
410 {
411 fprintf (stderr,
412 "Error in fcntl at line %d: %s\n",
413 __LINE__,
414 strerror (errno));
415 exit (1);
416 }
417 opts |= O_NONBLOCK;
418 if (-1 == fcntl (fd, F_SETFL, opts))
419 {
420 fprintf (stderr,
421 "Error in fcntl at line %d: %s\n",
422 __LINE__,
423 strerror (errno));
424 exit (1);
425 }
426}
427
428
429int 398int
430main (int argc, 399main (int argc,
431 char** argv) 400 char** argv)