summaryrefslogtreecommitdiff
path: root/apps/netutils/ftpc/ftpc_putfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/netutils/ftpc/ftpc_putfile.c')
-rw-r--r--apps/netutils/ftpc/ftpc_putfile.c42
1 files changed, 1 insertions, 41 deletions
diff --git a/apps/netutils/ftpc/ftpc_putfile.c b/apps/netutils/ftpc/ftpc_putfile.c
index e008da3b1..bc20853d7 100644
--- a/apps/netutils/ftpc/ftpc_putfile.c
+++ b/apps/netutils/ftpc/ftpc_putfile.c
@@ -72,30 +72,6 @@
****************************************************************************/
/****************************************************************************
- * Name: ftpc_waitoutput
- *
- * Description:
- * Wait to send data.
- *
- ****************************************************************************/
-
-static int ftpc_waitoutput(FAR struct ftpc_session_s *session)
-{
- int ret;
-
- do
- {
- ret = ftpc_waitdata(session, session->data.outstream, false);
- if (ret < 0)
- {
- return ERROR;
- }
- }
- while(ret == 0);
- return OK;
-}
-
-/****************************************************************************
* Name: ftpc_sendbinary
*
* Description:
@@ -129,15 +105,6 @@ static int ftpc_sendbinary(FAR struct ftpc_session_s *session,
break;
}
- /* Wait to make sure that we send the data without blocking */
-
- ret = ftpc_waitoutput(session);
- if (ret != OK)
- {
- ret = ERROR;
- break;
- }
-
/* Send the data */
nwritten = fwrite(buf, sizeof(char), nread, routstream);
@@ -174,15 +141,8 @@ static int ftpc_sendtext(FAR struct ftpc_session_s *session,
/* Write characters one at a time. */
- while((c = fgetc(linstream)) != EOF)
+ while ((c = fgetc(linstream)) != EOF)
{
- /* Make sure that we can send the character without blocking */
-
- if (ftpc_waitoutput(session) != 0)
- {
- break;
- }
-
/* If it is a newline, send a carriage return too */
if (c == '\n')