Module Name: src
Committed By: christos
Date: Wed Dec 25 17:18:39 UTC 2013
Modified Files:
src/external/bsd/nvi/dist/cl: cl_main.c
src/external/bsd/nvi/dist/vi: v_search.c
Log Message:
don't use err, it conflicts with err(3)
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/nvi/dist/cl/cl_main.c
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/nvi/dist/vi/v_search.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/nvi/dist/cl/cl_main.c
diff -u src/external/bsd/nvi/dist/cl/cl_main.c:1.2 src/external/bsd/nvi/dist/cl/cl_main.c:1.3
--- src/external/bsd/nvi/dist/cl/cl_main.c:1.2 Fri Nov 22 10:52:05 2013
+++ src/external/bsd/nvi/dist/cl/cl_main.c Wed Dec 25 12:18:39 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: cl_main.c,v 1.2 2013/11/22 15:52:05 christos Exp $ */
+/* $NetBSD: cl_main.c,v 1.3 2013/12/25 17:18:39 christos Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -239,11 +239,11 @@ cl_end(CL_PRIVATE *clp)
static void
term_init(const char *name, const char *ttype)
{
- int err;
+ int error;
/* Set up the terminal database information. */
- setupterm(__UNCONST(ttype), STDOUT_FILENO, &err);
- switch (err) {
+ setupterm(__UNCONST(ttype), STDOUT_FILENO, &error);
+ switch (error) {
case -1:
(void)fprintf(stderr,
"%s: No terminal database found\n", name);
Index: src/external/bsd/nvi/dist/vi/v_search.c
diff -u src/external/bsd/nvi/dist/vi/v_search.c:1.3 src/external/bsd/nvi/dist/vi/v_search.c:1.4
--- src/external/bsd/nvi/dist/vi/v_search.c:1.3 Mon Nov 25 17:43:46 2013
+++ src/external/bsd/nvi/dist/vi/v_search.c Wed Dec 25 12:18:39 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: v_search.c,v 1.3 2013/11/25 22:43:46 christos Exp $ */
+/* $NetBSD: v_search.c,v 1.4 2013/12/25 17:18:39 christos Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -70,7 +70,7 @@ v_exaddr(SCR *sp, VICMD *vp, dir_t dir)
TEXT *tp;
db_recno_t s_lno;
size_t len, s_cno, tlen;
- int err, nb, type;
+ int error, nb, type;
char buf[20];
CHAR_T *cmd, *t;
const CHAR_T *w;
@@ -174,7 +174,7 @@ v_exaddr(SCR *sp, VICMD *vp, dir_t dir)
* confused the parser. We're not that compatible.
*/
cmdp = &wp->excmd;
- if (ex_range(sp, cmdp, &err))
+ if (ex_range(sp, cmdp, &error))
return (1);
/*
@@ -185,7 +185,7 @@ v_exaddr(SCR *sp, VICMD *vp, dir_t dir)
len = cmdp->clen;
wp->excmd.clen = 0;
- if (err)
+ if (error)
goto err2;
/* Copy out the new cursor position and make sure it's okay. */