diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-01-19 09:14:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-01-19 09:14:43 +0000 |
commit | 03f38130ddef74e3aa66ef9a5a17aa780c28cde4 (patch) | |
tree | 7630725e69f6a5c77eea6da5f31efb5fb94a577a /src/vpn/gnunet-helper-vpn.c | |
parent | 60a1041f916d83c51800da45895eee029de31da6 (diff) | |
download | gnunet-03f38130ddef74e3aa66ef9a5a17aa780c28cde4.tar.gz gnunet-03f38130ddef74e3aa66ef9a5a17aa780c28cde4.zip |
byebye
Diffstat (limited to 'src/vpn/gnunet-helper-vpn.c')
-rw-r--r-- | src/vpn/gnunet-helper-vpn.c | 31 |
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 | */ | ||
404 | static void | ||
405 | setnonblocking (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 | |||
429 | int | 398 | int |
430 | main (int argc, | 399 | main (int argc, |
431 | char** argv) | 400 | char** argv) |