summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-06-26 10:23:12 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-06-26 10:23:12 -0400
commit0bc00b1b235914c35bb700a681e1f5c1fd468857 (patch)
tree057ae3b67ef914cbb80a00c55e391c108a048604
parentff831ea34a76f8fc22147f1ddb198de4872a2936 (diff)
downloadgpsd-0bc00b1b235914c35bb700a681e1f5c1fd468857.tar.gz
Correct some documentation.
-rw-r--r--gpsd.c7
-rw-r--r--gpsdctl.c5
2 files changed, 7 insertions, 5 deletions
diff --git a/gpsd.c b/gpsd.c
index 09f9f834..b7973065 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -741,9 +741,10 @@ static void handle_control(int sfd, char *buf)
/*
* The only other place in the code that knows about the format
- * of these commands is the gpsd_control() function in
- * gpsdctl.c. Be careful about keeping them in sync, or hotplugging
- * will have mysterious failures.
+ * of the + and - commands is the gpsd_control() function in
+ * gpsdctl.c. The only other olace that knows about ! is the
+ * control_send(0 function in gpsmon.c. Be careful about keeping
+ * them in sync, or hotplugging will have mysterious failures.
*/
/*@ -sefparams @*/
if (buf[0] == '-') {
diff --git a/gpsdctl.c b/gpsdctl.c
index 0332df9f..c5d130b0 100644
--- a/gpsdctl.c
+++ b/gpsdctl.c
@@ -90,8 +90,9 @@ static int gpsd_control(char *action, char *argument)
* 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.
+ * the add and remove 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) {
/*