aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-01-19 09:14:43 +0000
committerChristian Grothoff <christian@grothoff.org>2011-01-19 09:14:43 +0000
commit03f38130ddef74e3aa66ef9a5a17aa780c28cde4 (patch)
tree7630725e69f6a5c77eea6da5f31efb5fb94a577a
parent60a1041f916d83c51800da45895eee029de31da6 (diff)
downloadgnunet-03f38130ddef74e3aa66ef9a5a17aa780c28cde4.tar.gz
gnunet-03f38130ddef74e3aa66ef9a5a17aa780c28cde4.zip
byebye
-rw-r--r--src/vpn/gnunet-daemon-vpn.c1
-rw-r--r--src/vpn/gnunet-helper-vpn.c31
-rw-r--r--src/vpn/gnunet-vpn-packet.h1
3 files changed, 0 insertions, 33 deletions
diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c
index be62724ee..6abac6460 100644
--- a/src/vpn/gnunet-daemon-vpn.c
+++ b/src/vpn/gnunet-daemon-vpn.c
@@ -27,7 +27,6 @@
27#include "gnunet_getopt_lib.h" 27#include "gnunet_getopt_lib.h"
28#include "gnunet_program_lib.h" 28#include "gnunet_program_lib.h"
29#include "gnunet-vpn-packet.h" 29#include "gnunet-vpn-packet.h"
30#include "gnunet-vpn-helper-p.h"
31#include "gnunet-vpn-pretty-print.h" 30#include "gnunet-vpn-pretty-print.h"
32#include "gnunet_common.h" 31#include "gnunet_common.h"
33#include <gnunet_os_lib.h> 32#include <gnunet_os_lib.h>
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)
diff --git a/src/vpn/gnunet-vpn-packet.h b/src/vpn/gnunet-vpn-packet.h
index 4510098ae..28892f76d 100644
--- a/src/vpn/gnunet-vpn-packet.h
+++ b/src/vpn/gnunet-vpn-packet.h
@@ -1,7 +1,6 @@
1#ifndef _GNTUN_PACKET_H_ 1#ifndef _GNTUN_PACKET_H_
2#define _GNTUN_PACKET_H_ 2#define _GNTUN_PACKET_H_
3 3
4#include "gnunet-vpn-helper-p.h"
5#include "gnunet_common.h" 4#include "gnunet_common.h"
6 5
7// Headers 6// Headers