summaryrefslogtreecommitdiffstats
path: root/stream/stream_ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_ftp.c')
-rw-r--r--stream/stream_ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stream/stream_ftp.c b/stream/stream_ftp.c
index 1df2f897c9..69dc326641 100644
--- a/stream/stream_ftp.c
+++ b/stream/stream_ftp.c
@@ -213,7 +213,7 @@ static int FtpSendCmd(const char *cmd, struct stream_priv_s *nControl,char* rsp)
if(hascrlf && l == 2) mp_msg(MSGT_STREAM,MSGL_V, "\n");
else mp_msg(MSGT_STREAM,MSGL_V, "[ftp] > %s",cmd);
while(l > 0) {
- int s = send(nControl->handle,cmd,l,0);
+ int s = send(nControl->handle,cmd,l,DEFAULT_SEND_FLAGS);
if(s <= 0) {
mp_msg(MSGT_OPEN,MSGL_ERR, "[ftp] write error: %s\n",strerror(errno));
@@ -343,8 +343,8 @@ static int seek(stream_t *s,off_t newpos) {
//fcntl(p->handle,F_SETFL,fl&~O_NONBLOCK);
// send only first byte as OOB due to OOB braindamage in many unices
- send(p->handle,pre_cmd,1,MSG_OOB);
- send(p->handle,pre_cmd+1,sizeof(pre_cmd)-1,0);
+ send(p->handle,pre_cmd,1,MSG_OOB|DEFAULT_SEND_FLAGS);
+ send(p->handle,pre_cmd+1,sizeof(pre_cmd)-1,DEFAULT_SEND_FLAGS);
//fcntl(p->handle,F_SETFL,fl);