diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2007-03-14 02:27:45 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2007-03-14 02:27:45 +0000 |
commit | dad5b1a389bfbcfcd8d1f66a079057514376f243 (patch) | |
tree | c0410be88181897c0cf92f2f28f275e91d41e22f /gpsd.c | |
parent | fc2a0cf2d86df27098d1fa3139babd0ff5a31c55 (diff) | |
download | gpsd-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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': |