summaryrefslogtreecommitdiff
path: root/gpsdctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsdctl.c')
-rw-r--r--gpsdctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsdctl.c b/gpsdctl.c
index 4a9e4017..017dd1c9 100644
--- a/gpsdctl.c
+++ b/gpsdctl.c
@@ -74,11 +74,11 @@ static int gpsd_control(char *action, char *argument)
if (stat(argument, &sb) != 1)
(void)chmod(argument, sb.st_mode | S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP);
(void)snprintf(buf, sizeof(buf), "+%s\r\n", argument);
- status = write(connect, buf, strlen(buf));
+ status = (int)write(connect, buf, strlen(buf));
ignore_return(read(connect, buf, 12));
} else if (strcmp(action, "remove") == 0) {
(void)snprintf(buf, sizeof(buf), "-%s\r\n", argument);
- status = write(connect, buf, strlen(buf));
+ status = (int)write(connect, buf, strlen(buf));
ignore_return(read(connect, buf, 12));
} else {
(void)syslog(LOG_ERR, "unknown action \"%s\"", action);