summaryrefslogtreecommitdiff
path: root/gpsdctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsdctl.c')
-rw-r--r--gpsdctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsdctl.c b/gpsdctl.c
index 21d27e44..cd794184 100644
--- a/gpsdctl.c
+++ b/gpsdctl.c
@@ -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) {