[svn-commits] qwell: branch 1.4 r179395 - in /branches/1.4/main/editline: ./ np/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Mar 2 14:15:20 CST 2009


Author: qwell
Date: Mon Mar  2 14:14:57 2009
New Revision: 179395

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=179395
Log:
Remove several silly warnings in editline.  One about a broken preprocessor directive, and another about strlcpy/strlcat.

Modified:
    branches/1.4/main/editline/configure
    branches/1.4/main/editline/configure.in
    branches/1.4/main/editline/np/unvis.c
    branches/1.4/main/editline/sys.h

Modified: branches/1.4/main/editline/configure.in
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/main/editline/configure.in?view=diff&rev=179395&r1=179394&r2=179395
==============================================================================
--- branches/1.4/main/editline/configure.in (original)
+++ branches/1.4/main/editline/configure.in Mon Mar  2 14:14:57 2009
@@ -101,6 +101,8 @@
 AC_CHECK_FUNCS(fgetln, , CCSRCS="$CCSRCS np/fgetln.c")
 AC_CHECK_FUNCS(strvis, , CCSRCS="$CCSRCS np/vis.c")
 AC_CHECK_FUNCS(strunvis, , CCSRCS="$CCSRCS np/unvis.c")
+AC_CHECK_FUNCS(strlcpy, , CCSRCS="$CCSRCS np/strlcpy.c")
+AC_CHECK_FUNCS(strlcat, , CCSRCS="$CCSRCS np/strlcat.c")
 
 AC_EGREP_CPP(yes,
 [#include <sys/cdefs.h>

Modified: branches/1.4/main/editline/np/unvis.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/main/editline/np/unvis.c?view=diff&rev=179395&r1=179394&r2=179395
==============================================================================
--- branches/1.4/main/editline/np/unvis.c (original)
+++ branches/1.4/main/editline/np/unvis.c Mon Mar  2 14:14:57 2009
@@ -61,7 +61,7 @@
     "warning: reference to compatibility unvis(); include <vis.h> for correct reference")
 #endif
 
-#if !HAVE_VIS_H
+#ifndef HAVE_VIS_H
 /*
  * decode driven by state machine
  */

Modified: branches/1.4/main/editline/sys.h
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/main/editline/sys.h?view=diff&rev=179395&r1=179394&r2=179395
==============================================================================
--- branches/1.4/main/editline/sys.h (original)
+++ branches/1.4/main/editline/sys.h Mon Mar  2 14:14:57 2009
@@ -84,6 +84,16 @@
 char	*fgetln(FILE *fp, size_t *len);
 #endif
 
+#ifndef HAVE_STRLCPY
+#define	strlcpy libedit_strlcpy
+size_t strlcpy(char *dst, const char *src, size_t siz);
+#endif
+
+#ifndef HAVE_STRLCAT
+#define	strlcat libedit_strlcat
+size_t strlcat(char *dst, const char *src, size_t siz);
+#endif
+
 #define	REGEX		/* Use POSIX.2 regular expression functions */
 #undef	REGEXP		/* Use UNIX V8 regular expression functions */
 




More information about the svn-commits mailing list