Module Name: src Committed By: christos Date: Sun Dec 1 02:21:58 UTC 2013
Modified Files: src/external/bsd/nvi/dist/common: vi_db1.c Log Message: fix indentantion To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/external/bsd/nvi/dist/common/vi_db1.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/common/vi_db1.c diff -u src/external/bsd/nvi/dist/common/vi_db1.c:1.5 src/external/bsd/nvi/dist/common/vi_db1.c:1.6 --- src/external/bsd/nvi/dist/common/vi_db1.c:1.5 Sat Nov 30 09:54:29 2013 +++ src/external/bsd/nvi/dist/common/vi_db1.c Sat Nov 30 21:21:58 2013 @@ -123,27 +123,27 @@ db_get(SCR *sp, db_recno_t lno, u_int32_ #if defined(DBDEBUG) && defined(TRACE) vtrace( "retrieve TEXT buffer line %lu\n", (u_long)lno); - #endif - for (tp = TAILQ_FIRST(&sp->tiq); - tp->lno != lno; tp = TAILQ_NEXT(tp, q)); - if (lenp != NULL) - *lenp = tp->len; - if (pp != NULL) - *pp = tp->lb; - return (0); - } - /* - * Adjust the line number for the number of lines used - * by the text input buffers. - */ - if (lno > l2) - lno -= l2 - l1; - } +#endif + for (tp = TAILQ_FIRST(&sp->tiq); + tp->lno != lno; tp = TAILQ_NEXT(tp, q)); + if (lenp != NULL) + *lenp = tp->len; + if (pp != NULL) + *pp = tp->lb; + return (0); + } + /* + * Adjust the line number for the number of lines used + * by the text input buffers. + */ + if (lno > l2) + lno -= l2 - l1; + } - /* Look-aside into the cache, and see if the line we want is there. */ - if (lno == sp->c_lno) { - #if defined(DBDEBUG) && defined(TRACE) - vtrace("retrieve cached line %lu\n", (u_long)lno); + /* Look-aside into the cache, and see if the line we want is there. */ + if (lno == sp->c_lno) { +#if defined(DBDEBUG) && defined(TRACE) + vtrace("retrieve cached line %lu\n", (u_long)lno); #endif if (lenp != NULL) *lenp = sp->c_len;