diff options
author | 1998-06-10 00:16:19 +0000 | |
---|---|---|
committer | 1998-06-10 00:16:19 +0000 | |
commit | e60bc11e488313a08c9127f9cc038b6bdd9eaa24 (patch) | |
tree | fb2c4adc51ebe89feba2ee6f8add4e3259e39f17 /lib/libutil/uucplock.c | |
parent | Add CTAGS, with a full pathname, and use it. (diff) | |
download | wireguard-openbsd-e60bc11e488313a08c9127f9cc038b6bdd9eaa24.tar.xz wireguard-openbsd-e60bc11e488313a08c9127f9cc038b6bdd9eaa24.zip |
Cast pid_t to int for sprintf.
Pointed out by: Charlie Sorsby <crs@hgo.net>
Diffstat (limited to 'lib/libutil/uucplock.c')
-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 7bcbc4309d4..b88c7aab33f 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.3 1998/06/08 20:28:30 brian Exp $ + * $Id: uucplock.c,v 1.4 1998/06/10 00:16:19 brian Exp $ * */ @@ -211,7 +211,7 @@ put_pid(fd, pid) char buf[32]; int len; - len = sprintf (buf, "%10d\n", pid); + len = sprintf (buf, "%10d\n", (int)pid); if (write (fd, buf, len) == len) { /* We don't mind too much if ftruncate() fails - see get_pid */ |