--- libaitwww/inc/defs.h 2012/07/22 21:58:29 1.2 +++ libaitwww/inc/defs.h 2013/05/30 09:25:35 1.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.2 2012/07/22 21:58:29 misho Exp $ +* $Id: defs.h,v 1.4 2013/05/30 09:25:35 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 +Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -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