diff options
Diffstat (limited to 'gpsdctl.c')
-rw-r--r-- | gpsdctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,7 @@ static int gpsd_control(char *action, char *argument) int status; (void)syslog(LOG_ERR, "gpsd_control(action=%s, arg=%s)", action, argument); - if (access(control_socket, F_OK) == 0 && + if (access(control_socket, F_OK) == 0 && (connect = netlib_localsocket(control_socket, SOCK_STREAM)) >= 0) syslog(LOG_INFO, "reached a running gpsd"); else if (strcmp(action, "add") == 0) { |