diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-29 13:30:25 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-29 13:30:25 -0400 |
commit | a7c2f46d6d14f81cf379b6a77a4919ded0408a39 (patch) | |
tree | 4321242d66635581a117e8ca26f41235718fba95 /gpsdctl.c | |
parent | 689e3c3f6c388709a560c1e42b3a04a18020a4fb (diff) | |
download | gpsd-a7c2f46d6d14f81cf379b6a77a4919ded0408a39.tar.gz |
splint cleanup. Regression tests pass and PPS live-tests correctly.
Diffstat (limited to 'gpsdctl.c')
-rw-r--r-- | gpsdctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |