summaryrefslogtreecommitdiff
path: root/gpsdctl.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-29 13:30:25 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-29 13:30:25 -0400
commita7c2f46d6d14f81cf379b6a77a4919ded0408a39 (patch)
tree4321242d66635581a117e8ca26f41235718fba95 /gpsdctl.c
parent689e3c3f6c388709a560c1e42b3a04a18020a4fb (diff)
downloadgpsd-a7c2f46d6d14f81cf379b6a77a4919ded0408a39.tar.gz
splint cleanup. Regression tests pass and PPS live-tests correctly.
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);