$NetBSD: patch-ac,v 1.3 2017/01/04 17:19:52 roy Exp $

--- ldapvi.c.orig	2007-05-05 10:17:26.000000000 +0000
+++ ldapvi.c
@@ -470,7 +470,7 @@ change_mechanism(bind_options *bo)
 		bo->authmethod = LDAP_AUTH_SASL;
 		puts("Switching to SASL authentication.");
 	}
-	bo->sasl_mech = getline("SASL mechanism", bo->sasl_mech);
+	bo->sasl_mech = lv_getline("SASL mechanism", bo->sasl_mech);
 }
 
 static int
@@ -835,7 +835,7 @@ setcolor(int fg)
 {
 	char *bold = tigetstr("bold");
 	char *setaf = tigetstr("setaf");
-	if (setaf) putp(tparm(setaf, fg));
+	if (setaf) putp(tparm(setaf, fg, 0, 0, 0, 0, 0, 0, 0, 0));
 	if (bold) putp(bold);
 }
 
@@ -1465,7 +1465,7 @@ copy_sasl_output(FILE *out, char *sasl)
 	int line = 0;
 	int c;
 
-	if (lstat(sasl, &st) == -1) return;
+	if (lstat(sasl, &st) == -1) return 0;
 	if ( !(in = fopen(sasl, "r"))) syserr();
 
 	if (st.st_size > 0) {
@@ -1499,6 +1499,7 @@ copy_sasl_output(FILE *out, char *sasl)
 			fputc(c, out);
 		}
 	}
+	return line;
 }
 
 static GArray *
