summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/sysinstall.h
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-01-29 21:16:07 +0000
committerjkh <jkh@FreeBSD.org>1997-01-29 21:16:07 +0000
commitac85456797b8074dad5c1af1bb141abb9206d6ec (patch)
tree83e9095e674d2b5b7677942ffdfd7332a9da62a1 /usr.sbin/sysinstall/sysinstall.h
parent0b1072afc897dc6d26f0ca8ff58a0e989a760229 (diff)
downloadFreeBSD-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.h4
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 */
OpenPOWER on IntegriCloud