From 6c78a7b0e81a20dc4987882fcb7f59975eb21a72 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Wed, 10 Jun 1998 00:16:28 +0000 Subject: [PATCH] Cast pid_t to int for sprintf. Pointed out by: Charlie Sorsby --- lib/libutil/uucplock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libutil/uucplock.c b/lib/libutil/uucplock.c index 9f335241efbf..93c597e8de92 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; }