Module: ngircd.git
Branch: master
Commit: 75243ffb37aa1947a40435e79802626eb1ae11b3
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=75243ffb…
Author: Alexander Barton <alex(a)barton.de>
Date: Tue Jan 6 17:39:11 2009 +0100
Xcode: build ngIRCd with IPv6 support on Mac OS X
---
contrib/MacOSX/config.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/contrib/MacOSX/config.h b/contrib/MacOSX/config.h
index 9fd2dfc..5ed07d9 100644
--- a/contrib/MacOSX/config.h
+++ b/contrib/MacOSX/config.h
@@ -48,6 +48,9 @@
/* Define if zlib compression should be enabled */
#define ZLIB 1
+/* Define if IPV6 protocol should be enabled */
+#define WANT_IPV6 1
+
/* -- Supported features -- */
/* Define if SSP C support is enabled. */
@@ -83,6 +86,12 @@
#define HAVE_STRDUP 1
/* Define to 1 if you have the `vsnprintf' function. */
#define HAVE_VSNPRINTF 1
+/* Define to 1 if you have the `inet_aton' function. */
+#define HAVE_INET_ATON 1
+/* Define to 1 if you have the `getaddrinfo' function. */
+#define HAVE_GETADDRINFO 1
+/* Define to 1 if you have the `getnameinfo' function. */
+#define HAVE_GETNAMEINFO 1
/* Define if socklen_t exists */
#define HAVE_socklen_t 1
Module: ngircd.git
Branch: master
Commit: eb159e0a8d38449c10680cf3ed747fdb5c5adbc8
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=eb159e0a…
Author: Alexander Barton <alex(a)barton.de>
Date: Tue Jan 6 16:00:15 2009 +0100
Xcode: define TARGET_VENDOR and TARGET_OS
---
contrib/MacOSX/config.h | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/contrib/MacOSX/config.h b/contrib/MacOSX/config.h
index 8882e46..0b5a141 100644
--- a/contrib/MacOSX/config.h
+++ b/contrib/MacOSX/config.h
@@ -1,6 +1,6 @@
/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2007 Alexander Barton (alex(a)barton.de).
+ * Copyright (c)2001-2009 Alexander Barton (alex(a)barton.de).
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -8,8 +8,6 @@
* (at your option) any later version.
* Please read the file COPYING, README and AUTHORS for more information.
*
- * $Id: config.h,v 1.1 2007/11/19 22:11:36 alex Exp $
- *
* Static configuration file for Mac OS X Xcode project
*/
@@ -17,6 +15,11 @@
#define VERSION "??"
#define SYSCONFDIR "/etc/ngircd"
+#ifndef TARGET_VENDOR
+#define TARGET_VENDOR "apple"
+#define TARGET_OS "darwin"
+#endif
+
/* -- Build options -- */
/* Define if debug-mode should be enabled */
Module: ngircd.git
Branch: master
Commit: 175f0af979bfdb6dfde1535dd7de6a452cf98e32
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=175f0af9…
Author: Alexander Barton <alex(a)barton.de>
Date: Mon Jan 5 12:58:37 2009 +0100
Clean up channel allocation table on shutdown/restart.
Silly bug: the condition of a while() loop in the Channel_Exit() function
used the wrong variable and therefore got never executed ...
This bug is in the code since the beginning (see commit bb19cfda in 2002);
shame on me!
---
src/ngircd/channel.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c
index ba5e725..9a59712 100644
--- a/src/ngircd/channel.c
+++ b/src/ngircd/channel.c
@@ -1,6 +1,6 @@
/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2008 by Alexander Barton (alex(a)barton.de)
+ * Copyright (c)2001-2009 Alexander Barton (alex(a)barton.de)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -174,10 +174,9 @@ Channel_Exit( void )
/* Free Channel allocation table */
cl2chan = My_Cl2Chan;
- while( c )
- {
+ while (cl2chan) {
cl2chan_next = cl2chan->next;
- free( cl2chan );
+ free(cl2chan);
cl2chan = cl2chan_next;
}
} /* Channel_Exit */