diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-06-27 06:14:35 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-06-27 06:14:35 -0400 |
commit | 0ec066db26bdc4ed9b3ea97a29b4193bff8776d4 (patch) | |
tree | b6cb20abe06242464da343cb7d51e3c8cd9bbe94 /gpsdctl.c | |
parent | 0c6a0a8ed8e826057069ed8f3b6456f2c1980076 (diff) | |
download | gpsd-0ec066db26bdc4ed9b3ea97a29b4193bff8776d4.tar.gz |
Remove unused code.
Diffstat (limited to 'gpsdctl.c')
-rw-r--r-- | gpsdctl.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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"); |