summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-23 05:28:05 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-23 05:28:05 +0100
commit9864b4eb0c5392ced96167432ea6eef06c037d9f (patch)
treee37e9c907e8fab03c2389f677f51c37c8ef475bd /tools
parent595a975c95033e68e23727d96425fb92adf63bc1 (diff)
Removed wrong extern declarations for getopt
Diffstat (limited to 'tools')
-rw-r--r--tools/ppporc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/ppporc.c b/tools/ppporc.c
index 2d8b034d..148a437a 100644
--- a/tools/ppporc.c
+++ b/tools/ppporc.c
@@ -32,6 +32,7 @@
#include <stdlib.h>
#include <signal.h>
#include <syslog.h>
+#include <getopt.h>
#include <sys/poll.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
@@ -39,9 +40,6 @@
#include <bluetooth/bluetooth.h>
#include <bluetooth/rfcomm.h>
-extern int optind, opterr, optopt;
-extern char *optarg;
-
/* IO cancelation */
static volatile sig_atomic_t __io_canceled;