diff options
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"); |