summaryrefslogtreecommitdiff
path: root/bin/pdksh/var.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-01 18:30:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-01 18:30:39 +0000
commita43ab78081569419e6c61ef03c154da56a667dd8 (patch)
tree9d27b3251a03c6298aa14827691ac2399227b0e5 /bin/pdksh/var.c
parent380f0870e4aafdd13a6050959648e2e735f2ea56 (diff)
i am bored enough to fix terminal space/tab uglies
Diffstat (limited to 'bin/pdksh/var.c')
-rw-r--r--bin/pdksh/var.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/pdksh/var.c b/bin/pdksh/var.c
index f02c5b8f06e..8350846a148 100644
--- a/bin/pdksh/var.c
+++ b/bin/pdksh/var.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: var.c,v 1.5 1997/06/19 13:58:49 kstailey Exp $ */
+/* $OpenBSD: var.c,v 1.6 1997/09/01 18:30:16 deraadt Exp $ */
#include "sh.h"
#include "ksh_time.h"
@@ -159,7 +159,7 @@ global(n)
register struct block *l = e->loc;
register struct tbl *vp;
register int c;
- unsigned h;
+ unsigned h;
bool_t array;
int val;
@@ -405,7 +405,7 @@ getint(vp, nump)
int base, neg;
int have_base = 0;
long num;
-
+
if (vp->flag&SPECIAL)
getspec(vp);
/* XXX is it possible for ISSET to be set and val.s to be 0? */
@@ -460,7 +460,7 @@ setint_v(vq, vp)
{
int base;
long num;
-
+
if ((base = getint(vp, &num)) == -1)
return NULL;
if (!(vq->flag & INTEGER) && (vq->flag & ALLOC)) {
@@ -583,7 +583,7 @@ typeset(var, set, clr, field, base)
return NULL;
if (*val == '[') {
int len;
-
+
len = array_ref_len(val);
if (len == 0)
return NULL;