From d89d127e66ee4af18d3882acb5640e109ef4ce1b Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 29 Jun 2010 23:10:57 +0000 Subject: 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. --- usr.bin/tip/tip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/tip/tip.c') 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: -- cgit v1.2.3