summaryrefslogtreecommitdiff
path: root/gpsdctl.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-06-25 12:53:31 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-06-25 12:53:31 -0400
commit8284c74513e1cf123bbca9af59548e724749fcdc (patch)
tree21a1eb27f8426c82b2a330022f4a7d9714a6caa9 /gpsdctl.c
parentf42fe103f1b43435a295adb32716d0d222e9232e (diff)
downloadgpsd-8284c74513e1cf123bbca9af59548e724749fcdc.tar.gz
Document some obscurities. All regression tests pass.
Diffstat (limited to 'gpsdctl.c')
-rw-r--r--gpsdctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpsdctl.c b/gpsdctl.c
index 08a78216..0332df9f 100644
--- a/gpsdctl.c
+++ b/gpsdctl.c
@@ -88,6 +88,10 @@ static int gpsd_control(char *action, char *argument)
* We've got a live connection to the gpsd control socket. No
* need to parse the response, because gpsd will lock on to the
* device if it's really a GPS and ignore it if it's not.
+ *
+ * The only other place in the code that knows about the format of
+ * these commands is the handle_control() function in gpsd.c. Be careful
+ * about keeping them in sync, or hotplugging will have nysterious failures.
*/
if (strcmp(action, "add") == 0) {
/*