projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
773109a
)
New macro for putting a Citserver reply into important message: SRV_STATUS_MSG
author
Wilfried Goesgens
<dothebart@citadel.org>
Thu, 4 Nov 2010 23:14:38 +0000
(
00:14
+0100)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Thu, 4 Nov 2010 23:14:38 +0000
(
00:14
+0100)
Use it like that:
StrBuf_ServGetln(Line);
if (GetServerStatus(Line, NULL) != 1) {
AppendImportantMessage(SRV_STATUS_MSG(Line));
webcit/webcit.h
patch
|
blob
|
history
diff --git
a/webcit/webcit.h
b/webcit/webcit.h
index c00cf59e1bfa1328aa8a51978dc51bf099fe5bdd..51976a5180996c5f7c7fa92f324637ad3b55e931 100644
(file)
--- a/
webcit/webcit.h
+++ b/
webcit/webcit.h
@@
-221,7
+221,7
@@
extern char *ssl_cipher_list;
-
+#define SRV_STATUS_MSG(ServerLineBuf) (ChrPtr(ServerLineBuf) + 4), (StrLength(ServerLineBuf) - 4)
#define MAJORCODE(a) (((int)(a / 100) ) * 100)
#define LISTING_FOLLOWS 100