From 03f38130ddef74e3aa66ef9a5a17aa780c28cde4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 19 Jan 2011 09:14:43 +0000 Subject: byebye --- src/vpn/gnunet-daemon-vpn.c | 1 - src/vpn/gnunet-helper-vpn.c | 31 ------------------------------- src/vpn/gnunet-vpn-packet.h | 1 - 3 files changed, 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 @@ #include "gnunet_getopt_lib.h" #include "gnunet_program_lib.h" #include "gnunet-vpn-packet.h" -#include "gnunet-vpn-helper-p.h" #include "gnunet-vpn-pretty-print.h" #include "gnunet_common.h" #include 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: } - -/** - * @brief sets the socket to nonblocking - * - * @param fd the socket - */ -static void -setnonblocking (int fd) -{ - int opts; - - if (-1 == (opts = fcntl (fd, F_GETFL))) - { - fprintf (stderr, - "Error in fcntl at line %d: %s\n", - __LINE__, - strerror (errno)); - exit (1); - } - opts |= O_NONBLOCK; - if (-1 == fcntl (fd, F_SETFL, opts)) - { - fprintf (stderr, - "Error in fcntl at line %d: %s\n", - __LINE__, - strerror (errno)); - exit (1); - } -} - - int main (int argc, 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 @@ #ifndef _GNTUN_PACKET_H_ #define _GNTUN_PACKET_H_ -#include "gnunet-vpn-helper-p.h" #include "gnunet_common.h" // Headers -- cgit v1.2.3