diff options
author | jkh <jkh@FreeBSD.org> | 1997-01-29 21:16:07 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-01-29 21:16:07 +0000 |
commit | ac85456797b8074dad5c1af1bb141abb9206d6ec (patch) | |
tree | 83e9095e674d2b5b7677942ffdfd7332a9da62a1 /usr.sbin/sysinstall/sysinstall.h | |
parent | 0b1072afc897dc6d26f0ca8ff58a0e989a760229 (diff) | |
download | FreeBSD-src-ac85456797b8074dad5c1af1bb141abb9206d6ec.zip FreeBSD-src-ac85456797b8074dad5c1af1bb141abb9206d6ec.tar.gz |
Fix broken layout help (this is what broke the TCP help screen).
Allow DITEM_NO_ECHO to be encoded in layout field types and make
user.c use it for the password item.
Diffstat (limited to 'usr.sbin/sysinstall/sysinstall.h')
-rw-r--r-- | usr.sbin/sysinstall/sysinstall.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/sysinstall.h b/usr.sbin/sysinstall/sysinstall.h index 1704887..4ed2476 100644 --- a/usr.sbin/sysinstall/sysinstall.h +++ b/usr.sbin/sysinstall/sysinstall.h @@ -186,6 +186,10 @@ typedef struct _variable { char *value; } Variable; +#define NO_ECHO_OBJ(type) ((type) | (DITEM_NO_ECHO << 16)) +#define TYPE_OF_OBJ(type) ((type) & 0xff) +#define ATTR_OF_OBJ(type) ((type) >> 16) + /* A screen layout structure */ typedef struct _layout { int y; /* x & Y co-ordinates */ |