summaryrefslogtreecommitdiff
path: root/src/lib9/rfork.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2013-06-25 10:44:25 -0700
committerIan Lance Taylor <iant@golang.org>2013-06-25 10:44:25 -0700
commite259828ddf559b0910290c004fcc02f940860581 (patch)
treecadbe9796950d285d81a08142a211a6ad11068fe /src/lib9/rfork.c
parent31d4ee6227d6a390712b66cb077c1e38df026e49 (diff)
downloadgo-e259828ddf559b0910290c004fcc02f940860581.tar.gz
lib9: avoid all -Wconversion warnings
Built after adding -Wconversion to the list of compiler arguments used when building. I believe these are all OK assuming we will not change the API. There is no effort to detect overflow due to very long strings. R=golang-dev, dave, rsc, r CC=golang-dev https://codereview.appspot.com/10195044
Diffstat (limited to 'src/lib9/rfork.c')
-rw-r--r--src/lib9/rfork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib9/rfork.c b/src/lib9/rfork.c
index 5a6eaeb94..c4ae90f97 100644
--- a/src/lib9/rfork.c
+++ b/src/lib9/rfork.c
@@ -82,7 +82,7 @@ p9rfork(int flags)
close(p[0]);
return -1;
}
- n = readn(p[0], buf, sizeof buf-1);
+ n = (int)readn(p[0], buf, sizeof buf-1);
close(p[0]);
if(!WIFEXITED(status) || WEXITSTATUS(status)!=0 || n <= 0){
if(!WIFEXITED(status))
@@ -102,7 +102,7 @@ p9rfork(int flags)
werrstr("%s", buf+2);
return -1;
}
- pid = strtol(buf, &q, 0);
+ pid = (int)strtol(buf, &q, 0);
}else{
/*
* Child - fork a new child whose wait message can't