summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2007-03-14 02:27:45 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2007-03-14 02:27:45 +0000
commitdad5b1a389bfbcfcd8d1f66a079057514376f243 (patch)
treec0410be88181897c0cf92f2f28f275e91d41e22f /gpsd.c
parentfc2a0cf2d86df27098d1fa3139babd0ff5a31c55 (diff)
downloadgpsd-dad5b1a389bfbcfcd8d1f66a079057514376f243.tar.gz
Gary reported a runtime link error.
Rename the readonly flag, change type. Also, bump the library version number. So much has changed that it's not fair to call it v16.0 any more.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gpsd.c b/gpsd.c
index 85e7605b..41095748 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -86,7 +86,7 @@ static fd_set all_fds;
static int maxfd;
static int debuglevel;
static bool in_background = false;
-extern bool readonly;
+extern int device_readonly;
static bool nowait = false;
static jmp_buf restartbuf;
/*@ -initallelements -nullassign -nullderef @*/
@@ -1255,6 +1255,7 @@ int main(int argc, char *argv[])
setlocale(LC_NUMERIC, "C");
#endif
debuglevel = 0;
+ device_readonly = false;
while ((option = getopt(argc, argv, "F:D:S:bdfhNnpP:V"
#ifdef RTCM104_SERVICE
"R:"
@@ -1271,7 +1272,7 @@ int main(int argc, char *argv[])
go_background = false;
break;
case 'b':
- readonly = true;
+ device_readonly = true;
break;
#ifdef RTCM104_SERVICE
case 'R':