[icinga-checkins] icinga.org: icinga-core/gbeutner/style: errno really isn' t an int on most platforms.

git at icinga.org git at icinga.org
Wed Jul 13 13:33:42 CEST 2011

Module: icinga-core
Branch: gbeutner/style
Commit: 49e739e2673999476c49795969cb0c2c0d183fa6
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=49e739e2673999476c49795969cb0c2c0d183fa6

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Wed Jul 13 08:27:35 2011 +0200

errno really isn't an int on most platforms.

When using glibc errno is actually a macro that calls a function which in
turn returns a thread-local value. Defining errno as an 'extern int' is just


 module/idoutils/src/ido2db.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/module/idoutils/src/ido2db.c b/module/idoutils/src/ido2db.c
index 8a85139..dd79ed2 100644
--- a/module/idoutils/src/ido2db.c
+++ b/module/idoutils/src/ido2db.c
@@ -29,8 +29,6 @@
 extern int use_ssl;
-extern int errno;
 extern char *ido2db_db_tablenames[IDO2DB_MAX_DBTABLES];
 #ifdef USE_LIBDBI

More information about the icinga-checkins mailing list