INN commit: trunk (include/inn/libinn.h lib/fdlimit.c lib/xmalloc.c)

INN Commit rra at isc.org
Tue Jul 12 13:05:47 UTC 2011


    Date: Tuesday, July 12, 2011 @ 06:05:47
  Author: iulius
Revision: 9245

add a pure attribute, a noreturn attribute, and fix a typo

Modified:
  trunk/include/inn/libinn.h
  trunk/lib/fdlimit.c
  trunk/lib/xmalloc.c

----------------------+
 include/inn/libinn.h |    2 +-
 lib/fdlimit.c        |    2 +-
 lib/xmalloc.c        |    1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

Modified: include/inn/libinn.h
===================================================================
--- include/inn/libinn.h	2011-07-12 13:04:09 UTC (rev 9244)
+++ include/inn/libinn.h	2011-07-12 13:05:47 UTC (rev 9245)
@@ -166,7 +166,7 @@
 
 /* Various checks. */
 extern bool             IsValidArticleNumber(const char *string);
-extern bool             IsValidKeyword(const char *string);
+extern bool             IsValidKeyword(const char *string) __attribute__ ((pure));
 extern bool             IsValidRange(char *string);
 
 

Modified: lib/fdlimit.c
===================================================================
--- lib/fdlimit.c	2011-07-12 13:04:09 UTC (rev 9244)
+++ lib/fdlimit.c	2011-07-12 13:05:47 UTC (rev 9245)
@@ -7,7 +7,7 @@
 **  portability (if we don't have getrlimit, try sysconf, then
 **  getdtablesize, then ulimit, and then try to find a hard-coded constant
 **  in <sys/param.h> and failing that fall back to the POSIX-guaranteed
-**  minimum of 20.
+**  minimum of 20).
 **
 **  For setting the limit, only setrlimit is supported; if it isn't
 **  available, return -1 always.  We also refuse to set the limit to

Modified: lib/xmalloc.c
===================================================================
--- lib/xmalloc.c	2011-07-12 13:04:09 UTC (rev 9244)
+++ lib/xmalloc.c	2011-07-12 13:05:47 UTC (rev 9245)
@@ -65,6 +65,7 @@
 #include "inn/libinn.h"
 
 /* The default error handler. */
+void xmalloc_fail(const char *, size_t, const char *, int) __attribute__((__noreturn__));
 void
 xmalloc_fail(const char *function, size_t size, const char *file, int line)
 {




More information about the inn-committers mailing list