]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
added imissing extern declarations for getopt
authorLudwig Maier <lmaier@zardoz.e12.ph.tum.de>
Tue, 11 Jun 2013 15:08:29 +0000 (17:08 +0200)
committerLudwig Maier <lmaier@zardoz.e12.ph.tum.de>
Tue, 11 Jun 2013 15:08:29 +0000 (17:08 +0200)
libtrbnet/trbcmd.c
libtrbnet/trbdhcp.c
libtrbnet/trbflash.c
pexor/pexorflash.c
trbnetd/server/trbnetd.c
trbrich/pulser.c
trbrich/trb_i2c.c
trbrich/trbrichcmd.c

index ffa4909a0392c7ccb3503761121697fb7d88bb55..c0b8265e2f320be70ebe81a7fe19e9d3604b4985 100644 (file)
@@ -9,6 +9,9 @@
 #include <signal.h>
 #include <stdarg.h>
 
+extern char *optarg;
+extern int optind, opterr, optopt;
+
 #include <libgen.h>
 #include <unistd.h>
 #include <stdint.h>
index 1ebf7ac6ff0802f6117d339b664ef909f3d86419..48f9a2420cca1cc50d1cc20ec066da03aa6e6207 100644 (file)
@@ -6,6 +6,9 @@
 #include <string.h>
 #include <errno.h>
 
+extern char *optarg;
+extern int optind, opterr, optopt;
+
 #include <libgen.h>
 #include <unistd.h>
 #include <stdint.h>
index 355a8cb53a9781d9b76da1f734179b2cb0c6ca2e..b505943ef3a12a77fdb2b97fdabe137a2149a6bd 100644 (file)
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
-#include <trbnet.h>
 
+extern char *optarg;
+extern int optind, opterr, optopt;
+
+#include <trbnet.h>
 #include <trberror.h>
 
 static const uint16_t HardwareId = 0x0042;
index 8cd9092c5558b341c034a4750e6b4bcdf4319b9f..b8ef80b9d9d07ecc7b688492e2b8d6dbdb720aa6 100644 (file)
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
+
+extern char *optarg;
+extern int optind, opterr, optopt;
+
 #include <trbnet.h>
 
 static const uint32_t SetupReg = 0x1d001;   /* RW */
index 815be4abdfc5f83245244eaad067eb2bc344d77b..cb97a65becb6018e56b2f63a07398c7ed4fcc919 100644 (file)
@@ -11,6 +11,9 @@
 #include <libgen.h>
 #include <signal.h>
 
+extern char *optarg;
+extern int optind, opterr, optopt;
+
 #include <trbnet.h>
 #include <trberror.h>
 
index cc4a487372eaaefcae83a0f4daf10596920189d0..736d3cd203eec8f604c64b5ec24be2bbe085c616 100644 (file)
@@ -6,6 +6,9 @@
 #include <signal.h>
 #include <limits.h>
 
+extern char *optarg;
+extern int optind, opterr, optopt;
+
 #include <libgen.h>
 #include <unistd.h>
 #include <stdint.h>
index cfbfe21f8abadf3f07d71f63f3086b48e1e77369..f358bc0326264ad624580545442985b00b4d3057 100644 (file)
@@ -5,6 +5,9 @@
 #include <stdlib.h>
 #include <string.h>
 
+extern char *optarg;
+extern int optind, opterr, optopt;
+
 #include <libgen.h>
 #include <unistd.h>
 #include <stdint.h>
index 168dfaeaf8c07964404f686af007479ae4c2cf04..94199a0b3733f55e0dc0a09e63d59a740b8a1b9f 100644 (file)
@@ -5,6 +5,9 @@
 #include <stdlib.h>
 #include <string.h>
 
+extern char *optarg;
+extern int optind, opterr, optopt;
+
 #include <libgen.h>
 #include <unistd.h>
 #include <stdint.h>