Module: ngircd.git
Branch: master
Commit: 54e67ea9ee6c2b00c43f759edc55b57b969c9e2d
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=54e67ea9…
Author: Alexander Barton <alex(a)barton.de>
Date: Tue May 18 17:38:12 2010 +0200
New "module" proc.c/proc.h for generic process handling
The new "module" proc.c is used for functions dealing with child
processes. At the moment, it is only used by the asynchronous resolver.
All the functions already implemented habe been migrated from the
resolver code base, and the rest of the ngIRCd source code has been
adepted to the new namespace and calling conventions.
The goal is to develop "generic" process handling functions that can
be used for other purposes as well, e.g. running processes on client
connects etc.
---
contrib/MacOSX/ngIRCd.xcodeproj/project.pbxproj | 6 ++
src/ngircd/Makefile.am | 10 +--
src/ngircd/conf.c | 2 +-
src/ngircd/conf.h | 4 +-
src/ngircd/conn.c | 23 +++--
src/ngircd/conn.h | 4 +-
src/ngircd/io.c | 3 +-
src/ngircd/proc.c | 102 +++++++++++++++++++++++
src/ngircd/proc.h | 35 ++++++++
src/ngircd/resolve.c | 99 +++-------------------
src/ngircd/resolve.h | 30 ++-----
11 files changed, 187 insertions(+), 131 deletions(-)
Diff: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commitdiff;h=54e6…
Module: ngircd.git
Branch: master
Commit: ae55d4f500703114cf10d07be786f1108d66b27d
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=ae55d4f5…
Author: Alexander Barton <alex(a)barton.de>
Date: Sat Jun 26 00:45:11 2010 +0200
Fix redundant redeclaration of Conn_Count*() functions
The wrongly placed #endif lead to the following compiler warnings:
conn.h:125: warning: redundant redeclaration of ‘Conn_Count’
conn.h:125: warning: previous declaration of ‘Conn_Count’ was here
conn.h:126: warning: redundant redeclaration of ‘Conn_CountMax’
conn.h:126: warning: previous declaration of ‘Conn_CountMax’ was here
conn.h:127: warning: redundant redeclaration of ‘Conn_CountAccepted’
conn.h:127: warning: previous declaration of ‘Conn_CountAccepted’ was here
---
src/ngircd/conn.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/ngircd/conn.h b/src/ngircd/conn.h
index 1cfa466..96d1f33 100644
--- a/src/ngircd/conn.h
+++ b/src/ngircd/conn.h
@@ -120,11 +120,12 @@ GLOBAL bool Conn_UsesSSL PARAMS((CONN_ID Idx));
#else
static inline bool Conn_UsesSSL(UNUSED CONN_ID Idx) { return false; }
#endif
-#endif
GLOBAL long Conn_Count PARAMS((void));
GLOBAL long Conn_CountMax PARAMS((void));
GLOBAL long Conn_CountAccepted PARAMS((void));
+#endif
+
/* -eof- */