summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1999-12-30 21:58:10 +0000
committerwtc%netscape.com <devnull@localhost>1999-12-30 21:58:10 +0000
commitec1e8cc92921ab4e7287108022f0c6c4766604e2 (patch)
treeb9de4ca76c97f312ce5db1295b3886a131ad175a
parent796100bd3e2cc5a31b814c1ef522cb9e9b7b2f65 (diff)
downloadnspr-hg-ec1e8cc92921ab4e7287108022f0c6c4766604e2.tar.gz
Bugzilla bug #22549: fixed a problem in the previous checkin that used
functions before they were declared. Thanks to Colin Blakes for the fix.
-rw-r--r--pr/src/pthreads/ptio.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/pr/src/pthreads/ptio.c b/pr/src/pthreads/ptio.c
index f3a8e276..accca747 100644
--- a/pr/src/pthreads/ptio.c
+++ b/pr/src/pthreads/ptio.c
@@ -1453,11 +1453,6 @@ static PRInt32 pt_Read(PRFileDesc *fd, void *buf, PRInt32 amount)
return bytes;
} /* pt_Read */
-static PRInt32 pt_SocketRead(PRFileDesc *fd, void *buf, PRInt32 amount)
-{
- return pt_Recv(fd, buf, amount, 0, PR_INTERVAL_NO_TIMEOUT);
-} /* pt_SocketRead */
-
static PRInt32 pt_Write(PRFileDesc *fd, const void *buf, PRInt32 amount)
{
PRInt32 syserrno, bytes = -1;
@@ -1500,11 +1495,6 @@ static PRInt32 pt_Write(PRFileDesc *fd, const void *buf, PRInt32 amount)
return bytes;
} /* pt_Write */
-static PRInt32 pt_SocketWrite(PRFileDesc *fd, const void *buf, PRInt32 amount)
-{
- return pt_Send(fd, buf, amount, 0, PR_INTERVAL_NO_TIMEOUT);
-} /* pt_SocketWrite */
-
static PRInt32 pt_Writev(
PRFileDesc *fd, const PRIOVec *iov, PRInt32 iov_len, PRIntervalTime timeout)
{
@@ -1946,6 +1936,11 @@ static PRInt32 pt_Recv(
return bytes;
} /* pt_Recv */
+static PRInt32 pt_SocketRead(PRFileDesc *fd, void *buf, PRInt32 amount)
+{
+ return pt_Recv(fd, buf, amount, 0, PR_INTERVAL_NO_TIMEOUT);
+} /* pt_SocketRead */
+
static PRInt32 pt_Send(
PRFileDesc *fd, const void *buf, PRInt32 amount,
PRIntn flags, PRIntervalTime timeout)
@@ -2026,6 +2021,11 @@ static PRInt32 pt_Send(
return bytes;
} /* pt_Send */
+static PRInt32 pt_SocketWrite(PRFileDesc *fd, const void *buf, PRInt32 amount)
+{
+ return pt_Send(fd, buf, amount, 0, PR_INTERVAL_NO_TIMEOUT);
+} /* pt_SocketWrite */
+
static PRInt32 pt_SendTo(
PRFileDesc *fd, const void *buf,
PRInt32 amount, PRIntn flags, const PRNetAddr *addr,