--- libaitwww/inc/defs.h 2012/07/22 21:57:11 1.1.1.1.6.1 +++ libaitwww/inc/defs.h 2013/05/26 20:30:42 1.3.6.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.1.1.1.6.1 2012/07/22 21:57:11 misho Exp $ +* $Id: defs.h,v 1.3.6.1 2013/05/26 20:30:42 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -50,18 +50,23 @@ SUCH DAMAGE. #ifndef STRSIZ #define STRSIZ 256 #endif +#ifndef CRLF #define CRLF "\r\n" +#endif +#ifndef LF +#define LF "\n" +#endif #define LOGERR { \ www_Errno = errno; \ - strlcpy(www_Error, strerror(errno), STRSIZ); \ + strlcpy(www_Error, strerror(errno), sizeof www_Error); \ } extern int www_Errno; -extern char www_Error[]; +extern char www_Error[STRSIZ]; -inline void www_SetErr(int eno, char *estr, ...); +void www_SetErr(int eno, char *estr, ...); #endif