changeset 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
files stream/stream_ftp.c
diffstat 1 files changed, 4 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_ftp.c	Mon Nov 26 23:38:11 2012 +0000
+++ b/stream/stream_ftp.c	Mon Nov 26 23:39:56 2012 +0000
@@ -54,17 +54,10 @@
   char *buf;
   char *cmd_buf;
 } stream_priv_dflts = {
-  "anonymous","no@spam",
-  NULL,
-  21,
-  NULL,
-  NULL,
-  NULL,
-
-  -1,
-  0,0,
-  NULL,
-  NULL,
+  .user = "anonymous",
+  .pass = "no@spam",
+  .port = 21,
+  .handle = -1,
 };
 
 #define CMD_BUFSIZE 8192