Mercurial > noffle
comparison src/protocol.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 | 76460d98b2fb |
| children | 0eaf93997170 |
comparison
equal
deleted
inserted
replaced
| 196:60a70c16d79c | 197:24d4cd032da5 |
|---|---|
| 1 /* | 1 /* |
| 2 protocol.c | 2 protocol.c |
| 3 | 3 |
| 4 $Id: protocol.c 314 2001-10-30 13:16:40Z bears $ | 4 $Id: protocol.c 316 2001-10-31 11:44:53Z bears $ |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #if HAVE_CONFIG_H | 7 #if HAVE_CONFIG_H |
| 8 #include <config.h> | 8 #include <config.h> |
| 9 #endif | 9 #endif |
| 20 #include "configfile.h" | 20 #include "configfile.h" |
| 21 #include "dynamicstring.h" | 21 #include "dynamicstring.h" |
| 22 #include "log.h" | 22 #include "log.h" |
| 23 #include "over.h" | 23 #include "over.h" |
| 24 #include "util.h" | 24 #include "util.h" |
| 25 #include "portable.h" | |
| 25 #include "protocol.h" | 26 #include "protocol.h" |
| 26 #include "portable.h" | |
| 27 | 27 |
| 28 static void | 28 static void |
| 29 readAlarm( int sig ) | 29 readAlarm( int sig ) |
| 30 { | 30 { |
| 31 UNUSED( sig ); | 31 UNUSED( sig ); |
| 73 Log_dbg( LOG_DBG_PROTOCOL, "[R] %s", line ); | 73 Log_dbg( LOG_DBG_PROTOCOL, "[R] %s", line ); |
| 74 return TRUE; | 74 return TRUE; |
| 75 } | 75 } |
| 76 | 76 |
| 77 Bool | 77 Bool |
| 78 Prt_getTxtLn( Str line, Bool *err, FILE *f, int timeoutSeconds ) | 78 Prt_getTxtLn( Str line, Bool *err, FILE *f, int timeoutSeconds ) |
| 79 { | 79 { |
| 80 Str buf; | 80 Str buf; |
| 81 | 81 |
| 82 if ( ! Prt_getLn( buf, f, timeoutSeconds ) ) | 82 if ( ! Prt_getLn( buf, f, timeoutSeconds ) ) |
| 83 { | 83 { |
