diff options
Diffstat (limited to 'modem-probe')
-rw-r--r-- | modem-probe/Makefile.am | 3 | ||||
-rw-r--r-- | modem-probe/modem-probe.c | 9 |
2 files changed, 3 insertions, 9 deletions
diff --git a/modem-probe/Makefile.am b/modem-probe/Makefile.am index c1df87f..12b396d 100644 --- a/modem-probe/Makefile.am +++ b/modem-probe/Makefile.am @@ -4,10 +4,9 @@ udevhomedir = $(udev_prefix)/lib/udev udevhome_PROGRAMS = modem-probe modem_probe_SOURCES = modem-probe.c -modem_probe_CPPFLAGS = $(GLIB_CFLAGS) +modem_probe_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) modem_probe_LDADD = $(GLIB_LIBS) udevrulesdir = $(udev_prefix)/lib/udev/rules.d dist_udevrules_DATA = 77-probe-modem-capabilities.rules dist_man_MANS = modem-probe.8 - diff --git a/modem-probe/modem-probe.c b/modem-probe/modem-probe.c index ddeb413..66fec96 100644 --- a/modem-probe/modem-probe.c +++ b/modem-probe/modem-probe.c @@ -14,10 +14,6 @@ * GNU General Public License for more details: */ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE 1 -#endif - #include <termios.h> #include <unistd.h> #include <fcntl.h> @@ -37,7 +33,7 @@ #define MODEM_CAP_ES 0x0010 /* Error control selection (v.42) */ #define MODEM_CAP_FCLASS 0x0020 /* Group III Fax */ #define MODEM_CAP_MS 0x0040 /* Modulation selection */ -#define MODEM_CAP_W 0x0080 /* Wireless commands */ +#define MODEM_CAP_W 0x0080 /* Wireless commands */ #define MODEM_CAP_IS856 0x0100 /* CDMA 3G EVDO rev 0 */ #define MODEM_CAP_IS856_A 0x0200 /* CDMA 3G EVDO rev A */ @@ -468,7 +464,7 @@ main(int argc, char *argv[]) attrs.c_cflag &= ~(CBAUD | CSIZE | CSTOPB | CLOCAL | PARENB); attrs.c_cflag |= (B9600 | CS8 | CREAD | PARENB); - + tcsetattr (fd, TCSANOW, &attrs); caps = modem_probe_caps (fd); tcsetattr (fd, TCSANOW, &orig); @@ -502,4 +498,3 @@ main(int argc, char *argv[]) do_exit (0); return 0; } - |