--------------------- PatchSet 3032 Date: 2001/09/15 19:27:29 Author: serassio Branch: nt-2_3-tolsty Tag: (none) Log: Fixed indent problems Members: src/ftp.c:1.1.1.3.4.3.2.1.2.1->1.1.1.3.4.3.2.1.2.2 src/helper.c:1.1.1.3.24.1.2.1->1.1.1.3.24.1.2.2 src/htcp.c:1.1.1.2.4.1.2.2.2.1->1.1.1.2.4.1.2.2.2.2 src/http.c:1.1.1.3.4.3.2.2.2.2->1.1.1.3.4.3.2.2.2.3 src/icmp.c:1.1.1.2.4.2.2.1.2.1->1.1.1.2.4.2.2.1.2.2 src/pinger.c:1.1.1.3.4.1.2.1.2.2->1.1.1.3.4.1.2.1.2.3 src/protos.h:1.1.1.3.4.1.2.6.2.2->1.1.1.3.4.1.2.6.2.3 src/squid.h:1.1.1.3.4.1.2.3.2.1->1.1.1.3.4.1.2.3.2.2 Index: squid/src/ftp.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/ftp.c,v retrieving revision 1.1.1.3.4.3.2.1.2.1 retrieving revision 1.1.1.3.4.3.2.1.2.2 diff -u -r1.1.1.3.4.3.2.1.2.1 -r1.1.1.3.4.3.2.1.2.2 --- squid/src/ftp.c 27 Aug 2001 21:48:21 -0000 1.1.1.3.4.3.2.1.2.1 +++ squid/src/ftp.c 15 Sep 2001 19:27:29 -0000 1.1.1.3.4.3.2.1.2.2 @@ -1,5 +1,5 @@ /* - * $Id: ftp.c,v 1.1.1.3.4.3.2.1.2.1 2001/08/27 21:48:21 tolsty Exp $ + * $Id: ftp.c,v 1.1.1.3.4.3.2.1.2.2 2001/09/15 19:27:29 serassio Exp $ * * DEBUG: section 9 File Transfer Protocol (FTP) * AUTHOR: Harvest Derived @@ -38,8 +38,7 @@ static const char *const crlf = "\r\n"; static char cbuf[1024]; -typedef enum -{ +typedef enum { BEGIN, SENT_USER, SENT_PASS, @@ -58,11 +57,9 @@ READING_DATA, WRITING_DATA, SENT_MKDIR -} -ftp_state_t; +} ftp_state_t; -struct _ftp_flags -{ +struct _ftp_flags { unsigned int isdir:1; unsigned int pasv_supported:1; unsigned int skip_whitespace:1; @@ -83,8 +80,7 @@ unsigned int datachannel_hack:1; }; -typedef struct _Ftpdata -{ +typedef struct _Ftpdata { StoreEntry *entry; request_t *request; char user[MAX_URL]; @@ -111,8 +107,7 @@ char *old_reply; char *old_filepath; char typecode; - struct - { + struct { int fd; char *buf; size_t size; @@ -122,10 +117,8 @@ char *last_command; char *last_reply; int replycode; - } - ctrl; - struct - { + } ctrl; + struct { int fd; char *buf; size_t size; @@ -133,23 +126,19 @@ FREE *freefunc; char *host; u_short port; - } - data; + } data; struct _ftp_flags flags; FwdState *fwd; -} -FtpStateData; +} FtpStateData; -typedef struct -{ +typedef struct { char type; int size; char *date; char *name; char *showname; char *link; -} -ftpListParts; +} ftpListParts; typedef void (FTPSM) (FtpStateData *); @@ -168,8 +157,7 @@ static wordlist *ftpParseControlReply(char *, size_t, int *, int *); static int ftpRestartable(FtpStateData * ftpState); static void ftpAppendSuccessHeader(FtpStateData * ftpState); -static void ftpAuthRequired(HttpReply * reply, request_t * request, - const char *realm); +static void ftpAuthRequired(HttpReply * reply, request_t * request, const char *realm); static void ftpHackShortcut(FtpStateData * ftpState, FTPSM * nextState); static void ftpPutStart(FtpStateData *); static CWCB ftpPutTransferDone; @@ -249,7 +237,8 @@ Quit - ************************************************/ -FTPSM *FTP_SM_FUNCS[] = { +FTPSM *FTP_SM_FUNCS[] = +{ ftpReadWelcome, /* BEGIN */ ftpReadUser, /* SENT_USER */ ftpReadPass, /* SENT_PASS */ @@ -429,20 +418,22 @@ storeBuffer(e); storeAppendPrintf(e, "\n"); if (ftpState->flags.listformat_unknown && !ftpState->flags.tried_nlst) { - storeAppendPrintf(e, - "[As plain directory]\n"); + storeAppendPrintf(e, "[As plain directory]\n"); } else if (ftpState->typecode == 'D') { storeAppendPrintf(e, "[As extended directory]\n"); } storeAppendPrintf(e, "