From 8284c74513e1cf123bbca9af59548e724749fcdc Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 25 Jun 2011 12:53:31 -0400 Subject: Document some obscurities. All regression tests pass. --- gpsdctl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gpsdctl.c') 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) { /* -- cgit v1.2.1