--- libaitcli/inc/defs.h 2011/05/29 22:48:23 1.3.2.2 +++ libaitcli/inc/defs.h 2013/05/30 09:16:42 1.6 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.3.2.2 2011/05/29 22:48:23 misho Exp $ +* $Id: defs.h,v 1.6 2013/05/30 09:16:42 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 +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 @@ -60,9 +60,9 @@ SUCH DAMAGE. #define MAX_BINDKEY 559 #define HISTORY_LINES 100 -#define HISTORY_FILE "/tmp/.aitcli.history" +#define HISTORY_FILE "/tmp/.elwix.history" -#define CLI_PROMPT "aitCLI> " +#define CLI_PROMPT "elwix> " #define CLI_CMD_SEP "---" #define LINEMODE_RAW -1 @@ -81,14 +81,14 @@ SUCH DAMAGE. #define LOGERR { \ cli_Errno = errno; \ - strlcpy(cli_Error, strerror(errno), STRSIZ); \ + strlcpy(cli_Error, strerror(errno), sizeof cli_Error); \ } extern int cli_Errno; -extern char cli_Error[]; +extern char cli_Error[STRSIZ]; -inline void cli_SetErr(int eno, char *estr, ...); +void cli_SetErr(int eno, char *estr, ...); #endif