From a7c2f46d6d14f81cf379b6a77a4919ded0408a39 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 29 Oct 2013 13:30:25 -0400 Subject: splint cleanup. Regression tests pass and PPS live-tests correctly. --- gpsdctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gpsdctl.c') 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); -- cgit v1.2.1