aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-09-30 23:54:34 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-30 23:54:34 -0700
commitd79d222a45561055e6a353a6a3065f8d5700c42f (patch)
tree1b55aea9f4e4cb66f6059ebda07f091b30b8eb1d
parent8eab871e557bcd0666f0a002330c9465463dd8f3 (diff)
downloaduemacs-d79d222a45561055e6a353a6a3065f8d5700c42f.tar.gz
Fix up unused variable and ambiguous else in random.c
-rw-r--r--random.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/random.c b/random.c
index 58218ed..22668d3 100644
--- a/random.c
+++ b/random.c
@@ -43,18 +43,6 @@ int showcpos(int f, int n)
int savepos; /* temp save for current offset */
int ecol; /* column pos/end of current line */
-#if PKCODE
- struct {
- int pk_clin;
- int pk_tlin;
- int pk_ccol;
- int pk_tcol;
- long pk_cchr;
- long pk_tchr;
- int pk_perc;
- int pk_char;
- } pk_mlrec;
-#endif
/* starting at the beginning of the buffer */
lp = lforw(curbp->b_linep);
@@ -331,7 +319,7 @@ int entab(int f, int n)
ccol = 0;
while (curwp->w_doto < llength(curwp->w_dotp)) {
/* see if it is time to compress */
- if ((fspace >= 0) && (nextab(fspace) <= ccol))
+ if ((fspace >= 0) && (nextab(fspace) <= ccol)) {
if (ccol - fspace < 2)
fspace = -1;
else {
@@ -343,6 +331,7 @@ int entab(int f, int n)
linsert(1, '\t');
fspace = -1;
}
+ }
/* get the current character */
cchar = lgetc(curwp->w_dotp, curwp->w_doto);