diff options
author | brian <brian@FreeBSD.org> | 1998-06-10 00:16:28 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-06-10 00:16:28 +0000 |
commit | 62a6d48ec9c890f13522b6fa5c39e24eb3e8d43d (patch) | |
tree | 377e0b3e2fd3724b077d66acc9e24e025456eb27 /lib | |
parent | 7c8026a0e0998033853b5fdc1a36f90147495145 (diff) | |
download | FreeBSD-src-62a6d48ec9c890f13522b6fa5c39e24eb3e8d43d.zip FreeBSD-src-62a6d48ec9c890f13522b6fa5c39e24eb3e8d43d.tar.gz |
Cast pid_t to int for sprintf.
Pointed out by: Charlie Sorsby <crs@hgo.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libutil/uucplock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/uucplock.c b/lib/libutil/uucplock.c index 9f33524..93c597e 100644 --- a/lib/libutil/uucplock.c +++ b/lib/libutil/uucplock.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: uucplock.c,v 1.8 1997/08/10 18:42:39 ache Exp $ + * $Id: uucplock.c,v 1.9 1998/05/28 23:17:09 brian Exp $ * */ @@ -204,7 +204,7 @@ put_pid(int fd, pid_t pid) char buf[32]; int len; - len = sprintf (buf, "%10d\n", pid); + len = sprintf (buf, "%10d\n", (int)pid); return write (fd, buf, len) == len; } |