Mercurial > mplayer.hg
comparison stream/stream_ftp.c @ 35397:0c18f01f65a5
stream ftp: Use C99 designated initializers
Simplify the initialization of the stream private struct's defaults.
author | al |
---|---|
date | Mon, 26 Nov 2012 23:39:56 +0000 |
parents | 6f03d15719a3 |
children | 14aeceb6c267 |
comparison
equal
deleted
inserted
replaced
35396:6f03d15719a3 | 35397:0c18f01f65a5 |
---|---|
52 int handle; | 52 int handle; |
53 int cavail,cleft; | 53 int cavail,cleft; |
54 char *buf; | 54 char *buf; |
55 char *cmd_buf; | 55 char *cmd_buf; |
56 } stream_priv_dflts = { | 56 } stream_priv_dflts = { |
57 "anonymous","no@spam", | 57 .user = "anonymous", |
58 NULL, | 58 .pass = "no@spam", |
59 21, | 59 .port = 21, |
60 NULL, | 60 .handle = -1, |
61 NULL, | |
62 NULL, | |
63 | |
64 -1, | |
65 0,0, | |
66 NULL, | |
67 NULL, | |
68 }; | 61 }; |
69 | 62 |
70 #define CMD_BUFSIZE 8192 | 63 #define CMD_BUFSIZE 8192 |
71 | 64 |
72 #define BUFSIZE 2048 | 65 #define BUFSIZE 2048 |