diff options
| -rw-r--r-- | close_range.c | 2 | ||||
| -rw-r--r-- | libsimple/definitions.h | 6 | 
2 files changed, 4 insertions, 4 deletions
| diff --git a/close_range.c b/close_range.c index 29602c9..096aa56 100644 --- a/close_range.c +++ b/close_range.c @@ -128,7 +128,7 @@ fallback:  	} while (first++ < last);  out: -	(next) +	if (next)  		*next = last + (last < LIBSIMPLE_CLOSE_RANGE_MAX);  	errno = saved_errno;  	return 0; diff --git a/libsimple/definitions.h b/libsimple/definitions.h index 98c3a15..b0f816b 100644 --- a/libsimple/definitions.h +++ b/libsimple/definitions.h @@ -218,13 +218,13 @@   *    * This macro does not support the wide-character strings   *  - * @param   STR:const char []  The string, must be a literal - * @return  :size_t            The value of `strlen(STR)` as a constant expression + * @param   STR:string literal  The string (must be a literal) + * @return  :size_t             The value of `strlen(STR)` as a constant expression   *    * @since  1.0   */  #ifndef STRLEN -# define STRLEN(STR) (sizeof(STR) - 1) +# define STRLEN(STR) (sizeof(STR) - 1U)  #endif | 
