summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2009-03-24 06:59:20 +0000
committerJoris Vink <joris@cvs.openbsd.org>2009-03-24 06:59:20 +0000
commitd28c2d9e69d46cb351bb0543acfd150b60d1cedb (patch)
treeecf434b1134ba586b65929896fe5869ef641e880
parent3fbaffc7722d9cd8ed39d7f5b1aee0d7b52ca3cb (diff)
use size_t for size, since atomicio() both accepts and returns it
-rw-r--r--usr.bin/cvs/util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c
index 4fe9fb65fe2..458249124fd 100644
--- a/usr.bin/cvs/util.c
+++ b/usr.bin/cvs/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.150 2009/02/23 21:33:12 joris Exp $ */
+/* $OpenBSD: util.c,v 1.151 2009/03/24 06:59:19 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org>
@@ -870,7 +870,8 @@ int
cvs_exec(char *prog, const char *in, int needwait)
{
pid_t pid;
- int fds[2], size, st;
+ size_t size;
+ int fds[2], st;
char *argp[4] = { "sh", "-c", prog, NULL };
if (in != NULL && pipe(fds) < 0) {