summaryrefslogtreecommitdiff
path: root/gpsdctl.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-06-27 06:14:35 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-06-27 06:14:35 -0400
commit0ec066db26bdc4ed9b3ea97a29b4193bff8776d4 (patch)
treeb6cb20abe06242464da343cb7d51e3c8cd9bbe94 /gpsdctl.c
parent0c6a0a8ed8e826057069ed8f3b6456f2c1980076 (diff)
downloadgpsd-0ec066db26bdc4ed9b3ea97a29b4193bff8776d4.tar.gz
Remove unused code.
Diffstat (limited to 'gpsdctl.c')
-rw-r--r--gpsdctl.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gpsdctl.c b/gpsdctl.c
index 9cc48b09..b34b31a4 100644
--- a/gpsdctl.c
+++ b/gpsdctl.c
@@ -59,7 +59,7 @@ static int gpsd_control(char *action, char *argument)
* The only other place in the code that knows about the format of
* 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.
+ * will have mysterious failures.
*/
if (strcmp(action, "add") == 0) {
/*
@@ -77,10 +77,6 @@ static int gpsd_control(char *action, char *argument)
(void)snprintf(buf, sizeof(buf), "-%s\r\n", argument);
(void)write(connect, buf, strlen(buf));
(void)read(connect, buf, 12);
- } else if (strcmp(action, "send") == 0) {
- (void)snprintf(buf, sizeof(buf), "%s\r\n", argument);
- (void)write(connect, buf, strlen(buf));
- (void)read(connect, buf, 12);
}
(void)close(connect);
//syslog(LOG_DEBUG, "gpsd_control ends");