[icinga-checkins] icinga.org: icinga-core/tdressler/ido: idoutils: change snprintf prototype assignments, fix unwanted delete of snprintf. h #2271

git at icinga.org git at icinga.org
Sun Feb 5 09:53:30 CET 2012


Module: icinga-core
Branch: tdressler/ido
Commit: 76ecd0266ac73e9ef2b49a50fcb331d38aabc51c
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=76ecd0266ac73e9ef2b49a50fcb331d38aabc51c

Author: Thomas Dressler <tdressler at tdressler.net>
Date:   Sun Feb  5 09:49:05 2012 +0100

idoutils: change snprintf prototype assignments, fix unwanted delete of snprintf.h #2271
refs #2271

---

 include/Makefile   |    2 +-
 include/snprintf.h |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/Makefile b/include/Makefile
index ea1a225..d478476 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -6,6 +6,6 @@ clean:
 	rm -f *~
 
 distclean: clean
-	rm -f config.h locations.h snprintf.h dh.h
+	rm -f config.h locations.h dh.h
 
 devclean: distclean
diff --git a/include/snprintf.h b/include/snprintf.h
index 1cf80e0..c82f87d 100644
--- a/include/snprintf.h
+++ b/include/snprintf.h
@@ -14,8 +14,8 @@
 #undef HAVE_VA_COPY
 #endif
 
-/* yes this really must be a ||. Don't muck with this (tridge) */
-#if !defined(HAVE_SNPRINTF) || !defined(HAVE_C99_VSNPRINTF)
+/* prototypes  */
+#if !defined(HAVE_C99_VSNPRINTF)
 int smb_vsnprintf(char *str, size_t count, const char *fmt, va_list args);
 #define vsnprintf smb_vsnprintf
 int smb_snprintf(char *str, size_t count, const char *fmt, ...);





More information about the icinga-checkins mailing list