diff src/client.c @ 197:24d4cd032da5 noffle

[svn] * AUTHORS,INSTALL,NEWS,README,TODO,docs/NOTES,src/client.c,src/protocol.c, src/protocol.h,src/server.c: Merge with latest 1.0 branch. I do not intend to do any further merges from the 1.0 branch; future changes to 1.0 should be carried over by hand if necessary. * src/configfile.c,src/content.c,src/control.c,src/database.c, src/dynamicstring.c,src/fetch.c,src/filter.c,src/group.c, src/itemlist.c,src/lock.c,src/outgoing.c,src/over.c,src/post.c, src/pseudo.c,src/request.c,src/util.c: Minor includes rearrangement.
author bears
date Wed, 31 Oct 2001 11:44:53 +0000
parents 28488e0e3630
children 7a2b488e258d
line wrap: on
line diff
--- a/src/client.c	Tue Oct 30 13:55:53 2001 +0000
+++ b/src/client.c	Wed Oct 31 11:44:53 2001 +0000
@@ -1,15 +1,13 @@
 /*
   client.c
 
-  $Id: client.c 310 2001-10-20 13:23:46Z bears $
+  $Id: client.c 316 2001-10-31 11:44:53Z bears $
 */
 
 #if HAVE_CONFIG_H
 #include <config.h>
 #endif
 
-#include "client.h"
-
 #include <stdio.h>
 #include <arpa/inet.h>
 #include <ctype.h>
@@ -19,6 +17,7 @@
 #include <stdarg.h>
 #include <sys/socket.h>
 #include <unistd.h>
+#include "client.h"
 #include "configfile.h"
 #include "content.h"
 #include "control.h"
@@ -64,15 +63,15 @@
 
 struct
 {
-    FILE* in;     /* Receiving socket from server */
-    FILE* out;    /* Sending socket to server */
-    Str lastCmd;  /* Last command line */
-    Str lastStat; /* Response from server to last command */
-    Str grp;      /* Selected group */
-    int rmtFirst;  /* First article of current group at server */
-    int rmtLast;   /* Last article of current group at server */
-    Bool auth;    /* Authetication already done? */
-    Str serv;     /* Remote server name */
+    FILE* in;       /* Receiving socket from server */
+    FILE* out;      /* Sending socket to server */
+    Str lastCmd;    /* Last command line */
+    Str lastStat;   /* Response from server to last command */
+    Str grp;        /* Selected group */
+    int rmtFirst;   /* First article of current group at server */
+    int rmtLast;    /* Last article of current group at server */
+    Bool auth;      /* Authentication already done? */
+    Str serv;       /* Remote server name */
 } client = { NULL, NULL, "", "", "", 1, 0, FALSE, "" };
 
 static void
@@ -351,7 +350,8 @@
             }
             Utl_cpyStr( client.serv, serv );
             stat = getStat();
-            switch( stat ) {
+            switch( stat )
+	    {
             case STAT_READY_POST_ALLOW:
             case STAT_READY_NO_POST_ALLOW: 
                 Log_inf( "Connected to %s:%d",