diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-06-29 23:10:57 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-06-29 23:10:57 +0000 |
commit | d89d127e66ee4af18d3882acb5640e109ef4ce1b (patch) | |
tree | c7ec65645f76fe0959ed8a3263bc9e1cd9d1f644 /usr.bin/tip/tip.c | |
parent | 75d6d488835bb219478325951388890c3b2d3a34 (diff) |
For every variable which has a value table entry with IREMOTE, remove the
remote variable and always use the value from the vtable. This then allows the
IREMOTE flag to be removed.
Diffstat (limited to 'usr.bin/tip/tip.c')
-rw-r--r-- | usr.bin/tip/tip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tip/tip.c b/usr.bin/tip/tip.c index 13ce24c8f8c..9dfa71f4c79 100644 --- a/usr.bin/tip/tip.c +++ b/usr.bin/tip/tip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tip.c,v 1.42 2010/06/29 21:34:50 nicm Exp $ */ +/* $OpenBSD: tip.c,v 1.43 2010/06/29 23:10:56 nicm Exp $ */ /* $NetBSD: tip.c,v 1.13 1997/04/20 00:03:05 mellon Exp $ */ /* @@ -89,7 +89,7 @@ main(int argc, char *argv[]) case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': - BR = atoi(&argv[1][1]); + setnumber(value(BAUDRATE), atoi(&argv[1][1])); break; default: @@ -117,7 +117,7 @@ main(int argc, char *argv[]) for (p = sys; *p; p++) *p = '\0'; PN = PNbuf; - (void)snprintf(sbuf, sizeof(sbuf), "tip%ld", BR); + (void)snprintf(sbuf, sizeof(sbuf), "tip%ld", number(value(BAUDRATE))); sys = sbuf; notnumber: |