gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH 3/3] gpsmon: simplify the HAVE_BLUEZ conditional


From: Beat Bolli
Subject: [gpsd-dev] [PATCH 3/3] gpsmon: simplify the HAVE_BLUEZ conditional
Date: Sat, 2 Nov 2013 01:03:42 +0100

Signed-off-by: Beat Bolli <address@hidden>
---
 gpsmon.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gpsmon.c b/gpsmon.c
index b332337..b415560 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -916,10 +916,9 @@ int main(int argc, char **argv)
     if ((optind >= argc || source.device == NULL
        || strchr(argv[optind], ':') != NULL)
 #ifdef HAVE_BLUEZ
-        && bachk(argv[optind])) {
-#else
-       ) {
+        && bachk(argv[optind])
 #endif
+       ) {
        (void)gps_open(source.server, source.port, &session.gpsdata);
        if (session.gpsdata.gps_fd < 0) {
            (void)fprintf(stderr,
-- 
1.8.4.rc3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]