# HG changeset patch # User al # Date 1353973196 0 # Node ID 0c18f01f65a55f4237fa16466172363157985a9f # Parent 6f03d15719a309069ca459a941b4796c8e430d21 stream ftp: Use C99 designated initializers Simplify the initialization of the stream private struct's defaults. diff -r 6f03d15719a3 -r 0c18f01f65a5 stream/stream_ftp.c --- 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