Array of long support.

Submitted by:	Ian Dowse <iedowse@maths.tcd.ie>
This commit is contained in:
Poul-Henning Kamp 2000-07-11 21:59:54 +00:00
parent 6b55e51be0
commit aa02fb5729

View File

@ -415,10 +415,16 @@ show_var(int *oid, int nlen)
if (!nflag) if (!nflag)
printf("%s: ", name); printf("%s: ", name);
fmt++; fmt++;
if(*fmt == 'U') val = "";
printf("%lu", *(unsigned long *)p); while (len >= sizeof(long)) {
else if(*fmt == 'U')
printf("%ld", *(long *)p); printf("%s%lu", val, *(unsigned long *)p);
else
printf("%s%ld", val, *(long *)p);
val = " ";
len -= sizeof (int);
p += sizeof (int);
}
return (0); return (0);
case 'P': case 'P':