[thirdparty-commits] seanbright: editline/trunk r163 - in /editline/trunk: Makefile.in refresh.c vi.c

SVN commits to the Digium third-party software repository thirdparty-commits at lists.digium.com
Sat Mar 20 12:23:19 CDT 2010


Author: seanbright
Date: Sat Mar 20 12:23:16 2010
New Revision: 163

URL: http://svnview.digium.com/svn/thirdparty?view=rev&rev=163
Log:
Resolve a few compiler warnings and only build static libraries, not shared.

Modified:
    editline/trunk/Makefile.in
    editline/trunk/refresh.c
    editline/trunk/vi.c

Modified: editline/trunk/Makefile.in
URL: http://svnview.digium.com/svn/thirdparty/editline/trunk/Makefile.in?view=diff&rev=163&r1=162&r2=163
==============================================================================
--- editline/trunk/Makefile.in (original)
+++ editline/trunk/Makefile.in Sat Mar 20 12:23:16 2010
@@ -65,7 +65,7 @@
 .SUFFIXES :
 .SUFFIXES : .c .o .o_a .o_s
 
-all :  lib_a lib_s
+all :  lib_a
 
 lib_a : $(LIB_A)
 lib_s : $(LIB_S)

Modified: editline/trunk/refresh.c
URL: http://svnview.digium.com/svn/thirdparty/editline/trunk/refresh.c?view=diff&rev=163&r1=162&r2=163
==============================================================================
--- editline/trunk/refresh.c (original)
+++ editline/trunk/refresh.c Sat Mar 20 12:23:16 2010
@@ -220,7 +220,7 @@
 	prompt_print(el, EL_PROMPT);
 
 	/* draw the current input buffer */
-#if notyet
+#ifdef notyet
 	termsz = el->el_term.t_size.h * el->el_term.t_size.v;
 	if (el->el_line.lastchar - el->el_line.buffer > termsz) {
 		/*

Modified: editline/trunk/vi.c
URL: http://svnview.digium.com/svn/thirdparty/editline/trunk/vi.c?view=diff&rev=163&r1=162&r2=163
==============================================================================
--- editline/trunk/vi.c (original)
+++ editline/trunk/vi.c Sat Mar 20 12:23:16 2010
@@ -1012,8 +1012,12 @@
 	if (fd < 0)
 		return CC_ERROR;
 	cp = el->el_line.buffer;
-	write(fd, cp, el->el_line.lastchar - cp +0u);
-	write(fd, "\n", 1);
+	if (write(fd, cp, el->el_line.lastchar - cp +0u) < 0) {
+		return CC_ERROR;
+	}
+	if (write(fd, "\n", 1) < 0) {
+		return CC_ERROR;
+	}
 	pid = fork();
 	switch (pid) {
 	case -1:




More information about the thirdparty-commits mailing list