lists.barton.de
Anmelden
Registrieren
Anmelden
Registrieren
Diese Liste verwalten
×
Tastenkürzel
Thread-Ansicht
j
: Nächste ungelesene Nachricht
k
: Vorherige ungelesene Nachricht
j a
: Zu allen Threads wechseln
j l
: Zur Listenübersicht springen
2024
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2023
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2022
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2021
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2020
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2019
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2018
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2017
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2016
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2015
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2014
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2013
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2012
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2011
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2010
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2009
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2008
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2007
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2006
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Februar
Januar
2005
Dezember
November
Oktober
September
August
Juli
Juni
Mai
April
März
Listenübersicht
Herunterladen
ngIRCd GIT Updates
----- 2024 -----
Dezember 2024
November 2024
Oktober 2024
September 2024
August 2024
Juli 2024
Juni 2024
Mai 2024
April 2024
März 2024
Februar 2024
Januar 2024
----- 2023 -----
Dezember 2023
November 2023
Oktober 2023
September 2023
August 2023
Juli 2023
Juni 2023
Mai 2023
April 2023
März 2023
Februar 2023
Januar 2023
----- 2022 -----
Dezember 2022
November 2022
Oktober 2022
September 2022
August 2022
Juli 2022
Juni 2022
Mai 2022
April 2022
März 2022
Februar 2022
Januar 2022
----- 2021 -----
Dezember 2021
November 2021
Oktober 2021
September 2021
August 2021
Juli 2021
Juni 2021
Mai 2021
April 2021
März 2021
Februar 2021
Januar 2021
----- 2020 -----
Dezember 2020
November 2020
Oktober 2020
September 2020
August 2020
Juli 2020
Juni 2020
Mai 2020
April 2020
März 2020
Februar 2020
Januar 2020
----- 2019 -----
Dezember 2019
November 2019
Oktober 2019
September 2019
August 2019
Juli 2019
Juni 2019
Mai 2019
April 2019
März 2019
Februar 2019
Januar 2019
----- 2018 -----
Dezember 2018
November 2018
Oktober 2018
September 2018
August 2018
Juli 2018
Juni 2018
Mai 2018
April 2018
März 2018
Februar 2018
Januar 2018
----- 2017 -----
Dezember 2017
November 2017
Oktober 2017
September 2017
August 2017
Juli 2017
Juni 2017
Mai 2017
April 2017
März 2017
Februar 2017
Januar 2017
----- 2016 -----
Dezember 2016
November 2016
Oktober 2016
September 2016
August 2016
Juli 2016
Juni 2016
Mai 2016
April 2016
März 2016
Februar 2016
Januar 2016
----- 2015 -----
Dezember 2015
November 2015
Oktober 2015
September 2015
August 2015
Juli 2015
Juni 2015
Mai 2015
April 2015
März 2015
Februar 2015
Januar 2015
----- 2014 -----
Dezember 2014
November 2014
Oktober 2014
September 2014
August 2014
Juli 2014
Juni 2014
Mai 2014
April 2014
März 2014
Februar 2014
Januar 2014
----- 2013 -----
Dezember 2013
November 2013
Oktober 2013
September 2013
August 2013
Juli 2013
Juni 2013
Mai 2013
April 2013
März 2013
Februar 2013
Januar 2013
----- 2012 -----
Dezember 2012
November 2012
Oktober 2012
September 2012
August 2012
Juli 2012
Juni 2012
Mai 2012
April 2012
März 2012
Februar 2012
Januar 2012
----- 2011 -----
Dezember 2011
November 2011
Oktober 2011
September 2011
August 2011
Juli 2011
Juni 2011
Mai 2011
April 2011
März 2011
Februar 2011
Januar 2011
----- 2010 -----
Dezember 2010
November 2010
Oktober 2010
September 2010
August 2010
Juli 2010
Juni 2010
Mai 2010
April 2010
März 2010
Februar 2010
Januar 2010
----- 2009 -----
Dezember 2009
November 2009
Oktober 2009
September 2009
August 2009
Juli 2009
Juni 2009
Mai 2009
April 2009
März 2009
Februar 2009
Januar 2009
----- 2008 -----
Dezember 2008
November 2008
Oktober 2008
September 2008
August 2008
Juli 2008
Juni 2008
Mai 2008
April 2008
März 2008
Februar 2008
Januar 2008
----- 2007 -----
Dezember 2007
November 2007
Oktober 2007
September 2007
August 2007
Juli 2007
Juni 2007
Mai 2007
April 2007
März 2007
Februar 2007
Januar 2007
----- 2006 -----
Dezember 2006
November 2006
Oktober 2006
September 2006
August 2006
Juli 2006
Juni 2006
Mai 2006
April 2006
März 2006
Februar 2006
Januar 2006
----- 2005 -----
Dezember 2005
November 2005
Oktober 2005
September 2005
August 2005
Juli 2005
Juni 2005
Mai 2005
April 2005
März 2005
ngircd-commits@lists.barton.de
2442 Diskussionen
Einen n
N
euen Thread beginnen
Alexander Barton : Re-add #include's for header files of the C file itself
by alex@arthur.barton.de
17 Mär '14
17 Mär '14
Module: ngircd.git Branch: master Commit: a534e71e8da9a7bab55e7e76358a60dcbd3e25d5 URL:
http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=a534e71e…
Author: Alexander Barton <alex(a)barton.de> Date: Mon Mar 17 18:02:57 2014 +0100 Re-add #include's for header files of the C file itself This partially reverts commit b130b35f4, "Update #include's: remove unused and add missing ones", but fixes the following compiler and analyzer warnings of Apple Xcode 5: "Semantic issue: No previous prototype for function 'yyy'" --- src/ngircd/client-cap.c | 2 ++ src/ngircd/hash.c | 2 ++ src/ngircd/irc-cap.c | 2 ++ src/ngircd/irc-channel.c | 2 ++ src/ngircd/irc-encoding.c | 2 ++ src/ngircd/irc-login.c | 2 ++ src/ngircd/irc-metadata.c | 2 ++ src/ngircd/irc-mode.c | 2 ++ src/ngircd/irc-op.c | 2 ++ src/ngircd/irc-oper.c | 2 ++ src/ngircd/irc-server.c | 2 ++ src/ngircd/match.c | 2 ++ src/ngircd/numeric.c | 2 ++ src/ngircd/op.c | 2 ++ src/ngircd/resolve.c | 2 ++ src/ngircd/sighandlers.c | 2 ++ 16 files changed, 32 insertions(+) diff --git a/src/ngircd/client-cap.c b/src/ngircd/client-cap.c index e6a4eb2..e403da1 100644 --- a/src/ngircd/client-cap.c +++ b/src/ngircd/client-cap.c @@ -23,6 +23,8 @@ #include "conn.h" #include "log.h" +#include "client-cap.h" + GLOBAL int Client_Cap(CLIENT *Client) { diff --git a/src/ngircd/hash.c b/src/ngircd/hash.c index 7e5ad9d..cdac5e8 100644 --- a/src/ngircd/hash.c +++ b/src/ngircd/hash.c @@ -22,6 +22,8 @@ #include "defines.h" #include "tool.h" +#include "hash.h" + static UINT32 jenkins_hash PARAMS((UINT8 *k, UINT32 length, UINT32 initval)); /** diff --git a/src/ngircd/irc-cap.c b/src/ngircd/irc-cap.c index 61e47f8..bf4c9cd 100644 --- a/src/ngircd/irc-cap.c +++ b/src/ngircd/irc-cap.c @@ -29,6 +29,8 @@ #include "messages.h" #include "parse.h" +#include "irc-cap.h" + /* Local functions */ /** diff --git a/src/ngircd/irc-channel.c b/src/ngircd/irc-channel.c index 3ea8232..c142243 100644 --- a/src/ngircd/irc-channel.c +++ b/src/ngircd/irc-channel.c @@ -35,6 +35,8 @@ #include "irc-write.h" #include "conf.h" +#include "irc-channel.h" + /** * Part from all channels. * diff --git a/src/ngircd/irc-encoding.c b/src/ngircd/irc-encoding.c index 2c6ac59..7b7121b 100644 --- a/src/ngircd/irc-encoding.c +++ b/src/ngircd/irc-encoding.c @@ -29,6 +29,8 @@ #include "parse.h" #include "tool.h" +#include "irc-encoding.h" + /** * Handler for the IRC+ "CHARCONV" command. * diff --git a/src/ngircd/irc-login.c b/src/ngircd/irc-login.c index 609b187..af165cf 100644 --- a/src/ngircd/irc-login.c +++ b/src/ngircd/irc-login.c @@ -34,6 +34,8 @@ #include "irc-macros.h" #include "irc-write.h" +#include "irc-login.h" + static void Change_Nick PARAMS((CLIENT * Origin, CLIENT * Target, char *NewNick, bool InformClient)); diff --git a/src/ngircd/irc-metadata.c b/src/ngircd/irc-metadata.c index 32e0451..efb2201 100644 --- a/src/ngircd/irc-metadata.c +++ b/src/ngircd/irc-metadata.c @@ -29,6 +29,8 @@ #include "messages.h" #include "parse.h" +#include "irc-metadata.h" + /** * Handler for the IRC+ "METADATA" command. * diff --git a/src/ngircd/irc-mode.c b/src/ngircd/irc-mode.c index 12a7e30..6a67007 100644 --- a/src/ngircd/irc-mode.c +++ b/src/ngircd/irc-mode.c @@ -31,6 +31,8 @@ #include "messages.h" #include "conf.h" +#include "irc-mode.h" + static bool Client_Mode PARAMS((CLIENT *Client, REQUEST *Req, CLIENT *Origin, CLIENT *Target)); static bool Channel_Mode PARAMS((CLIENT *Client, REQUEST *Req, CLIENT *Origin, diff --git a/src/ngircd/irc-op.c b/src/ngircd/irc-op.c index 82a78eb..b75841a 100644 --- a/src/ngircd/irc-op.c +++ b/src/ngircd/irc-op.c @@ -28,6 +28,8 @@ #include "messages.h" #include "parse.h" +#include "irc-op.h" + /* Local functions */ static bool diff --git a/src/ngircd/irc-oper.c b/src/ngircd/irc-oper.c index f896098..1d69a6c 100644 --- a/src/ngircd/irc-oper.c +++ b/src/ngircd/irc-oper.c @@ -37,6 +37,8 @@ #include "messages.h" #include "op.h" +#include "irc-oper.h" + /** * Handle invalid received OPER command. * Log OPER attempt and send error message to client. diff --git a/src/ngircd/irc-server.c b/src/ngircd/irc-server.c index 5ac8810..92186af 100644 --- a/src/ngircd/irc-server.c +++ b/src/ngircd/irc-server.c @@ -35,6 +35,8 @@ #include "irc-write.h" #include "op.h" +#include "irc-server.h" + /** * Handler for the IRC "SERVER" command. * diff --git a/src/ngircd/match.c b/src/ngircd/match.c index 3acae90..93ddc0b 100644 --- a/src/ngircd/match.c +++ b/src/ngircd/match.c @@ -22,6 +22,8 @@ #include "defines.h" #include "tool.h" +#include "match.h" + /* * The pattern matching functions [Matche(), Matche_After_Star()] are based * on code of J. Kercheval. Version 1.1 has been released on 1991-03-12 as diff --git a/src/ngircd/numeric.c b/src/ngircd/numeric.c index 5217e14..da863e4 100644 --- a/src/ngircd/numeric.c +++ b/src/ngircd/numeric.c @@ -31,6 +31,8 @@ #include "log.h" #include "parse.h" +#include "numeric.h" + /** * Announce a channel and its users in the network. */ diff --git a/src/ngircd/op.c b/src/ngircd/op.c index 7b7befb..4a11355 100644 --- a/src/ngircd/op.c +++ b/src/ngircd/op.c @@ -26,6 +26,8 @@ #include "messages.h" #include "irc-write.h" +#include "op.h" + /** * Return and log a "no privileges" message. */ diff --git a/src/ngircd/resolve.c b/src/ngircd/resolve.c index 01e303e..be41ec8 100644 --- a/src/ngircd/resolve.c +++ b/src/ngircd/resolve.c @@ -40,6 +40,8 @@ #include "log.h" #include "ng_ipaddr.h" +#include "resolve.h" + static void Do_ResolveAddr PARAMS(( const ng_ipaddr_t *Addr, int Sock, int w_fd )); static void Do_ResolveName PARAMS(( const char *Host, int w_fd )); diff --git a/src/ngircd/sighandlers.c b/src/ngircd/sighandlers.c index e5345db..5cde24b 100644 --- a/src/ngircd/sighandlers.c +++ b/src/ngircd/sighandlers.c @@ -33,6 +33,8 @@ #include "log.h" #include "ngircd.h" +#include "sighandlers.h" + static int signalpipe[2]; static const int signals_catch[] = {
1
0
0
0
Alexander Barton : Update copyright notices of recently changed files
by alex@arthur.barton.de
17 Mär '14
17 Mär '14
Module: ngircd.git Branch: master Commit: a13bb78b1e7adf7c261ac427341c397ef9a6a1ed URL:
http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=a13bb78b…
Author: Alexander Barton <alex(a)barton.de> Date: Mon Mar 17 02:13:15 2014 +0100 Update copyright notices of recently changed files --- src/ngircd/channel.c | 2 +- src/ngircd/client-cap.c | 2 +- src/ngircd/client.c | 2 +- src/ngircd/conn-encoding.c | 2 +- src/ngircd/conn-func.c | 2 +- src/ngircd/conn-ssl.c | 9 ++++++++- src/ngircd/conn-zip.c | 2 +- src/ngircd/hash.c | 2 +- src/ngircd/io.c | 6 ++++-- src/ngircd/irc-cap.c | 2 +- src/ngircd/irc-channel.c | 2 +- src/ngircd/irc-encoding.c | 2 +- src/ngircd/irc-login.c | 2 +- src/ngircd/irc-metadata.c | 2 +- src/ngircd/irc-mode.c | 2 +- src/ngircd/irc-op.c | 2 +- src/ngircd/irc-oper.c | 2 +- src/ngircd/irc-server.c | 2 +- src/ngircd/irc-write.c | 2 +- src/ngircd/irc.c | 2 +- src/ngircd/lists.c | 2 +- src/ngircd/log.c | 2 +- src/ngircd/login.c | 2 +- src/ngircd/match.c | 2 +- src/ngircd/numeric.c | 2 +- src/ngircd/op.c | 2 +- src/ngircd/pam.c | 2 +- src/ngircd/parse.c | 2 +- src/ngircd/proc.c | 2 +- src/ngircd/resolve.c | 2 +- src/ngircd/sighandlers.c | 2 +- src/portab/Makefile.ng | 2 +- src/portab/portabtest.c | 2 +- src/portab/strlcpy.c | 2 +- src/tool/tool.c | 2 +- 35 files changed, 45 insertions(+), 36 deletions(-) Diff:
http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commitdiff;h=a13b…
1
0
0
0
Alexander Barton : portab.h: Restructure and clean up code
by alex@arthur.barton.de
17 Mär '14
17 Mär '14
Module: ngircd.git Branch: master Commit: 37090a28e8319650e49b4bd3e0518c2f8cbc8ae4 URL:
http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=37090a28…
Author: Alexander Barton <alex(a)barton.de> Date: Mon Mar 17 01:17:30 2014 +0100 portab.h: Restructure and clean up code - Don't use HAVE_SYS_TYPES_H, <sys/types.h> is a required header now. - Streamline check for boolean data types. - Better indent #ifdef constructs. --- src/portab/portab.h | 84 ++++++++++++++++++++++++--------------------------- 1 file changed, 40 insertions(+), 44 deletions(-) diff --git a/src/portab/portab.h b/src/portab/portab.h index e30262d..78b6f7e 100644 --- a/src/portab/portab.h +++ b/src/portab/portab.h @@ -1,6 +1,6 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001-2012 Alexander Barton (alex(a)barton.de) and Contributors. + * Copyright (c)2001-2014 Alexander Barton (alex(a)barton.de) and Contributors. * * 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 @@ -23,28 +23,6 @@ # define NDEBUG #endif -#ifdef HAVE_SYS_TYPES_H -# include <sys/types.h> -#endif - -#ifdef HAVE_INTTYPES_H -# include <inttypes.h> -# define NGIRC_GOT_INTTYPES -#else -# ifdef HAVE_STDINT_H -# include <stdint.h> -# define NGIRC_GOT_INTTYPES -# endif -#endif - -#ifdef HAVE_STDDEF_H -# include <stddef.h> -#endif - -#ifdef HAVE_STDBOOL_H -# include <stdbool.h> -#endif - /* compiler features */ #if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 7)) @@ -65,6 +43,22 @@ /* datatypes */ +#include <sys/types.h> + +#ifdef HAVE_STDDEF_H +# include <stddef.h> +#endif + +#ifdef HAVE_INTTYPES_H +# include <inttypes.h> +# define NGIRC_GOT_INTTYPES +#else +# ifdef HAVE_STDINT_H +# include <stdint.h> +# define NGIRC_GOT_INTTYPES +# endif +#endif + #ifndef PROTOTYPES # ifndef signed # define signed @@ -83,26 +77,28 @@ typedef unsigned short UINT16; typedef unsigned int UINT32; #endif -#ifndef HAVE_STDBOOL_H +#ifdef HAVE_STDBOOL_H +# include <stdbool.h> +#else typedef unsigned char bool; -#define true (bool)1 -#define false (bool)0 +# define true (bool)1 +# define false (bool)0 #endif #ifndef NULL -#ifdef PROTOTYPES -# define NULL (void *)0 -#else -# define NULL 0L -#endif +# ifdef PROTOTYPES +# define NULL (void *)0 +# else +# define NULL 0L +# endif #endif #ifdef NeXT -#define S_IRUSR 0000400 /* read permission, owner */ -#define S_IWUSR 0000200 /* write permission, owner */ -#define S_IRGRP 0000040 /* read permission, group */ -#define S_IROTH 0000004 /* read permission, other */ -#define ssize_t int +# define S_IRUSR 0000400 /* read permission, owner */ +# define S_IWUSR 0000200 /* write permission, owner */ +# define S_IRGRP 0000040 /* read permission, group */ +# define S_IROTH 0000004 /* read permission, other */ +# define ssize_t int #endif #undef GLOBAL @@ -111,25 +107,25 @@ typedef unsigned char bool; /* SPLint */ #ifdef S_SPLINT_S -#include "splint.h" +# include "splint.h" #endif /* target constants */ #ifndef HOST_OS -#define HOST_OS "unknown" +# define HOST_OS "unknown" #endif #ifndef HOST_CPU -#define HOST_CPU "unknown" +# define HOST_CPU "unknown" #endif #ifndef HOST_VENDOR -#define HOST_VENDOR "unknown" +# define HOST_VENDOR "unknown" #endif #ifdef __HAIKU__ -#define SINGLE_USER_OS +# define SINGLE_USER_OS #endif /* configure options */ @@ -168,15 +164,15 @@ extern int vsnprintf PARAMS(( char *str, size_t count, const char *fmt, va_list #endif #ifndef HAVE_GAI_STRERROR -#define gai_strerror(r) "unknown error" +# define gai_strerror(r) "unknown error" #endif #ifndef PACKAGE_NAME -#define PACKAGE_NAME PACKAGE +# define PACKAGE_NAME PACKAGE #endif #ifndef PACKAGE_VERSION -#define PACKAGE_VERSION VERSION +# define PACKAGE_VERSION VERSION #endif #endif
1
0
0
0
Alexander Barton : Update #include's: remove unused and add missing ones
by alex@arthur.barton.de
17 Mär '14
17 Mär '14
Module: ngircd.git Branch: master Commit: b130b35f48d19450240748425e12d21f2c38350f URL:
http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=b130b35f…
Author: Alexander Barton <alex(a)barton.de> Date: Mon Mar 17 02:28:39 2014 +0100 Update #include's: remove unused and add missing ones The "deheader" tool (<
http://www.catb.org/~esr/deheader/
>) has been used to find unused #include directives as well as missing ones. Tested on: - A/UX 3.1.1 - ArchLinux (2014-03-17) - Debian GNU/Hurd - Debian GNU/Linux 6.0.9 - Debian GNU/Linux 7.4 - Fedora 20 - FreeBSD 9.2 - OpenBSD 4.8 - OpenBSD 5.1 - OS X 10.9 - Solaris 11 --- src/ipaddr/ng_ipaddr.h | 1 + src/ngircd/array.c | 5 ++++- src/ngircd/channel.c | 3 +-- src/ngircd/class.c | 6 +----- src/ngircd/client-cap.c | 4 ---- src/ngircd/client.c | 4 +--- src/ngircd/conf.c | 6 +----- src/ngircd/conn-encoding.c | 9 ++++----- src/ngircd/conn-func.c | 7 ++++--- src/ngircd/conn.c | 17 ++++++----------- src/ngircd/hash.c | 2 -- src/ngircd/io.c | 2 +- src/ngircd/irc-cap.c | 5 +---- src/ngircd/irc-channel.c | 3 --- src/ngircd/irc-encoding.c | 6 ++---- src/ngircd/irc-info.c | 5 +---- src/ngircd/irc-login.c | 5 +---- src/ngircd/irc-metadata.c | 6 +----- src/ngircd/irc-mode.c | 3 --- src/ngircd/irc-op.c | 4 ---- src/ngircd/irc-oper.c | 4 +--- src/ngircd/irc-server.c | 6 ------ src/ngircd/irc-write.c | 2 -- src/ngircd/irc.c | 8 +++++--- src/ngircd/lists.c | 12 ++++-------- src/ngircd/log.c | 10 ++++------ src/ngircd/login.c | 10 +++++----- src/ngircd/match.c | 1 - src/ngircd/ngircd.c | 6 ------ src/ngircd/numeric.c | 9 ++------- src/ngircd/op.c | 3 --- src/ngircd/pam.c | 17 +++++++---------- src/ngircd/parse.c | 10 ++++------ src/ngircd/proc.c | 4 +++- src/ngircd/resolve.c | 8 ++------ src/ngircd/sighandlers.c | 3 +-- 36 files changed, 68 insertions(+), 148 deletions(-) Diff:
http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commitdiff;h=b130…
1
0
0
0
Alexander Barton : configure[.ng]: <sys/types.h> is a required header file
by alex@arthur.barton.de
17 Mär '14
17 Mär '14
Module: ngircd.git Branch: master Commit: 67256f9da1cd43a31e3e703d15fbd4cf75c23923 URL:
http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=67256f9d…
Author: Alexander Barton <alex(a)barton.de> Date: Mon Mar 17 00:47:45 2014 +0100 configure[.ng]: <sys/types.h> is a required header file ngIRCd already includes <sys/types.h> in a lot of places without checking for its existence (for example in "ngircd.c", "io.c", ...), therefore make it a required header file. --- configure.ng | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ng b/configure.ng index 5f85a4d..bd40694 100644 --- a/configure.ng +++ b/configure.ng @@ -155,7 +155,7 @@ AC_HEADER_TIME # Required header files AC_CHECK_HEADERS([ \ fcntl.h netdb.h netinet/in.h stdlib.h string.h \ - strings.h sys/socket.h sys/time.h unistd.h \ + strings.h sys/socket.h sys/time.h sys/types.h unistd.h \ ],,AC_MSG_ERROR([required C header missing!])) # Optional header files
1
0
0
0
Alexander Barton : io.c: <sys/time.h> is only needed when using select()
by alex@arthur.barton.de
17 Mär '14
17 Mär '14
Module: ngircd.git Branch: master Commit: 7b10a0e4ee64657e138dc9ef3a0d8a68c0e275f0 URL:
http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=7b10a0e4…
Author: Alexander Barton <alex(a)barton.de> Date: Mon Mar 17 00:45:07 2014 +0100 io.c: <sys/time.h> is only needed when using select() Only include the <sys/time.h> header when using the select() IO API, it isn't required otherwise. --- src/ngircd/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngircd/io.c b/src/ngircd/io.c index dab3043..791190f 100644 --- a/src/ngircd/io.c +++ b/src/ngircd/io.c @@ -18,7 +18,6 @@ #include <assert.h> #include <stdlib.h> #include <string.h> -#include <sys/time.h> #include <sys/types.h> #include <unistd.h> #include <fcntl.h> @@ -119,6 +118,7 @@ static bool io_event_change_devpoll(int fd, short what); #endif #ifdef IO_USE_SELECT +#include <sys/time.h> #include "defines.h" /* for conn.h */ #include "proc.h" /* for PROC_STAT (needed by conf.h) */ #include "conn.h" /* for CONN_ID (needed by conf.h) */
1
0
0
0
Alexander Barton : Remove imp.h and exp.h header files
by alex@arthur.barton.de
17 Mär '14
17 Mär '14
Module: ngircd.git Branch: master Commit: 259c314d142abd6f9295047c116235cfdd119563 URL:
http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=259c314d…
Author: Alexander Barton <alex(a)barton.de> Date: Mon Mar 17 00:17:02 2014 +0100 Remove imp.h and exp.h header files These include files don't have a function any more, remove them. --- src/ngircd/channel.c | 6 ------ src/ngircd/class.c | 2 -- src/ngircd/client-cap.c | 2 -- src/ngircd/client.c | 6 ------ src/ngircd/conf.c | 2 -- src/ngircd/conn-encoding.c | 2 -- src/ngircd/conn-func.c | 2 -- src/ngircd/conn-ssl.c | 2 -- src/ngircd/conn-zip.c | 4 +--- src/ngircd/conn.c | 6 ------ src/ngircd/hash.c | 2 -- src/ngircd/irc-cap.c | 2 -- src/ngircd/irc-channel.c | 2 -- src/ngircd/irc-encoding.c | 2 -- src/ngircd/irc-info.c | 2 -- src/ngircd/irc-login.c | 2 -- src/ngircd/irc-metadata.c | 2 -- src/ngircd/irc-mode.c | 2 -- src/ngircd/irc-op.c | 2 -- src/ngircd/irc-oper.c | 2 -- src/ngircd/irc-server.c | 2 -- src/ngircd/irc-write.c | 2 -- src/ngircd/irc.c | 2 -- src/ngircd/lists.c | 2 -- src/ngircd/log.c | 2 -- src/ngircd/login.c | 2 -- src/ngircd/match.c | 2 -- src/ngircd/ngircd.c | 2 -- src/ngircd/numeric.c | 3 --- src/ngircd/op.c | 3 --- src/ngircd/pam.c | 2 -- src/ngircd/parse.c | 4 ---- src/ngircd/proc.c | 3 --- src/ngircd/resolve.c | 3 --- src/ngircd/sighandlers.c | 1 - src/portab/Makefile.ng | 2 +- src/portab/exp.h | 21 --------------------- src/portab/imp.h | 21 --------------------- src/portab/portabtest.c | 3 --- src/portab/strdup.c | 3 --- src/portab/strlcpy.c | 4 ---- src/portab/strndup.c | 3 --- src/portab/waitpid.c | 3 --- src/tool/tool.c | 2 -- 44 files changed, 2 insertions(+), 149 deletions(-) Diff:
http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commitdiff;h=259c…
1
0
0
0
Alexander Barton : Code cleanup, remove blank lines
by alex@arthur.barton.de
16 Mär '14
16 Mär '14
Module: ngircd.git Branch: master Commit: 43fb18f2f5a506c4d78967e4b6e961b7339c98dc URL:
http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=43fb18f2…
Author: Alexander Barton <alex(a)barton.de> Date: Sun Mar 16 22:11:26 2014 +0100 Code cleanup, remove blank lines --- src/ipaddr/ng_ipaddr.h | 1 + src/ngircd/channel.c | 2 -- src/ngircd/conn-encoding.c | 3 +-- src/ngircd/conn-func.c | 19 ------------------- src/ngircd/conn.c | 2 -- src/ngircd/log.c | 1 - src/ngircd/match.c | 9 --------- src/ngircd/ngircd.c | 1 - src/ngircd/numeric.c | 6 ------ src/ngircd/op.c | 2 -- src/portab/portab.h | 5 ----- src/portab/strlcpy.c | 2 -- src/portab/strndup.c | 2 +- 13 files changed, 3 insertions(+), 52 deletions(-) Diff:
http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commitdiff;h=43fb…
1
0
0
0
Alexander Barton : Don't define SSL_Want{Read|Write}() when SSL is disabled
by alex@arthur.barton.de
16 Mär '14
16 Mär '14
Module: ngircd.git Branch: master Commit: 6238196dac6cab9dae0b4d01190a7fad307d5a93 URL:
http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=6238196d…
Author: Alexander Barton <alex(a)barton.de> Date: Sun Mar 16 22:28:37 2014 +0100 Don't define SSL_Want{Read|Write}() when SSL is disabled Not even call the "dummy" functions. --- src/ngircd/conn.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 6056355..fad3435 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -809,16 +809,6 @@ SSL_WantWrite(const CONNECTION *c) return false; } -#else - -static inline bool -SSL_WantRead(UNUSED const CONNECTION *c) -{ return false; } - -static inline bool -SSL_WantWrite(UNUSED const CONNECTION *c) -{ return false; } - #endif @@ -881,8 +871,10 @@ Conn_Handler(void) if (wdatalen > 0) #endif { +#ifdef SSL_SUPPORT if (SSL_WantRead(&My_Connections[i])) continue; +#endif io_event_add(My_Connections[i].sock, IO_WANTWRITE); }
1
0
0
0
Alexander Barton : strdup.c: Code cleanup
by alex@arthur.barton.de
16 Mär '14
16 Mär '14
Module: ngircd.git Branch: master Commit: 51396f8f1c10506b558ce98aafb80aff4b2a95bd URL:
http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=51396f8f…
Author: Alexander Barton <alex(a)barton.de> Date: Sun Mar 16 22:59:03 2014 +0100 strdup.c: Code cleanup --- src/portab/strdup.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/portab/strdup.c b/src/portab/strdup.c index 7c0ee8f..795af72 100644 --- a/src/portab/strdup.c +++ b/src/portab/strdup.c @@ -19,18 +19,19 @@ #include "exp.h" GLOBAL char * -strdup( const char *s ) +strdup(const char *s) { - char *dup; - size_t len = strlen( s ); - size_t alloc = len + 1; + char *dup; + size_t len = strlen(s); + size_t alloc = len + 1; - if (len >= alloc ) return NULL; - dup = malloc( alloc ); - if (dup) strlcpy(dup, s, alloc ); + if (len >= alloc) + return NULL; + dup = malloc(alloc); + if (dup) + strlcpy(dup, s, alloc ); -return dup; + return dup; } #endif -
1
0
0
0
← Neuer
1
...
40
41
42
43
44
45
46
...
245
Älter →
Springe zur Seite:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
Ergebnisse pro Seite:
10
25
50
100
200