[MPlayer-cvslog] r35491 - trunk/stream/stream_ftp.c
al
subversion at mplayerhq.hu
Tue Nov 27 00:39:56 CET 2012
Author: al
Date: Tue Nov 27 00:39:56 2012
New Revision: 35491
Log:
stream ftp: Use C99 designated initializers
Simplify the initialization of the stream private struct's defaults.
Modified:
trunk/stream/stream_ftp.c
Modified: trunk/stream/stream_ftp.c
==============================================================================
--- trunk/stream/stream_ftp.c Tue Nov 27 00:38:11 2012 (r35490)
+++ trunk/stream/stream_ftp.c Tue Nov 27 00:39:56 2012 (r35491)
@@ -54,17 +54,10 @@ static struct stream_priv_s {
char *buf;
char *cmd_buf;
} stream_priv_dflts = {
- "anonymous","no at spam",
- NULL,
- 21,
- NULL,
- NULL,
- NULL,
-
- -1,
- 0,0,
- NULL,
- NULL,
+ .user = "anonymous",
+ .pass = "no at spam",
+ .port = 21,
+ .handle = -1,
};
#define CMD_BUFSIZE 8192
More information about the MPlayer-cvslog
mailing list