From 0bc00b1b235914c35bb700a681e1f5c1fd468857 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 26 Jun 2011 10:23:12 -0400 Subject: Correct some documentation. --- gpsd.c | 7 ++++--- gpsdctl.c | 5 +++-- 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) { /* -- cgit v1.2.1